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

Transient variables are not assigned to Sub Process

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • jBPM 3.2.x
    • jBPM 3.2.2, jBPM 3.2.3, jBPM 3.3.0 GA, jBPM 3.2.4 GA, jBPM 3.3.1 GA, jBPM 3.2.5 GA
    • Runtime Engine
    • None
    • Low
    • Workaround Exists
    • Hide

      Define at least one persistent variable to be Read from the Sub Process

      Show
      Define at least one persistent variable to be Read from the Sub Process

    Description

      Transient variables are not assigned to Sub Process

      I have a Super Process consisting of few Sub processes and transient variables map is supposed to be assigned to the
      Sub Processes too in order to be available to them too.
      But this behavior is true only if we have define at least one Super process variable to be Read by a Sub process.

      The bug could be resolved if in org.jbpm.graph.node.ProcessState.execute(...)
      ----------
      if ((variableAccesses != null) && (!variableAccesses.isEmpty())) {

      ContextInstance superContextInstance = executionContext.getContextInstance();
      ContextInstance subContextInstance = subProcessInstance.getContextInstance();
      subContextInstance.setTransientVariables(superContextInstance.getTransientVariables());
      ---------
      is changed like:
      ---------
      ContextInstance superContextInstance = executionContext.getContextInstance();
      ContextInstance subContextInstance = subProcessInstance.getContextInstance();
      subContextInstance.setTransientVariables(superContextInstance.getTransientVariables());

      if ((variableAccesses != null) && (!variableAccesses.isEmpty())) {

      Attachments

        Activity

          People

            Unassigned Unassigned
            akrachev Atanas Krachev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: