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

JbpmVariableResolver always reads variables from the root token

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • jBPM 3.2.x
    • jBPM 3.2.12
    • Runtime Engine
    • None
    • Hide

      -create fork-join process
      -set variables for children tokens
      -try to read them using expression

      Show
      -create fork-join process -set variables for children tokens -try to read them using expression

      JbpmVariableResolver first checks if the current token has a variable and then retrieves the given variable from root token (lines ##36-38):
      if (contextInstance.hasVariable(name, token))

      { //succeeds return contextInstance.getVariable(name); //returns NULL }

      It should be (compare to the jbpm-jpdl v. 3.2.8):
      if (contextInstance.hasVariable(name, token))

      { return contextInstance.getVariable(name, token); }

      since the current token is not always the root.

            marco.rietveld Marco Rietveld (Inactive)
            pjotrovsky Pëtr Andreev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: