Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-3626

Do not depend on hard coded variable name "processInstance"

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • jBPM 5.4.0.Beta1
    • jBPM 5.2
    • None
    • None
    • JBoss 7.1.1

      If there is a conditional intermediate catch event in a process definition like this:

      processInstance: WorkflowProcessInstance()
      objectId: Long() from processInstance.getVariable("workflowObjectId")
      o: MyObject(id == objectId, name == "My name")

      and it is triggered by updating a fact (MyObject) in the knowledge base it might happen that more than just the one process proceed if the process instance variable isn't named "processInstance". There seems to be some hard coded magic about the variable name "processInstance".

              swiderski.maciej Maciej Swiderski (Inactive)
              tdtappe_jira Heiko Tappe (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: