Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-254

Deployment descriptor validation fails if config item uses MVEL resolver and constructor with parameters

    XMLWordPrintable

Details

    • ER2
    • CR1
    • Hide
      1. Create an empty project.
      2. Open Deployment descriptor.
      3. Add WorkItemHandler with name "Service Task" and identifier new org.jbpm.process.workitem.bpmn2.ServiceTaskHandler(ksession, classLoader)

      Expected: Validation shouldn't show any warnings or errors.
      Actual: Validation fails with the described MVEL error.

      Show
      Create an empty project. Open Deployment descriptor. Add WorkItemHandler with name "Service Task" and identifier new org.jbpm.process.workitem.bpmn2.ServiceTaskHandler(ksession, classLoader) Expected: Validation shouldn't show any warnings or errors. Actual: Validation fails with the described MVEL error.
    • 2017 Week 36-37, 2017 Week 38-39

    Description

      It is allowed to use MVEL resolver for object definition which can specify constructor parameters like this:

      new org.jbpm.test.CustomStrategy(runtimeManager)
      

      If parameters are used, validation fails (probably because the variables are not declared in ParserContext):

      [Error: unable to resolve method using strict-mode: java.lang.Object.ksession()]
      [Near : {... rg.jbpm.process.workitem.bpmn2.ServiceTaskHandler(ksession, classLoader) ....}]
                                                                     ^
      [Line: 1, Column: 56]
      

      Attachments

        Issue Links

          Activity

            People

              rhn-support-tsurdilo Tihomir Surdilovic (Inactive)
              jlocker Jiří Locker
              Jiří Locker Jiří Locker
              Jiří Locker Jiří Locker
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: