Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-2475

Variables set on sub process start miss in history

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.2.0, 7.0.6, 7.1.4, 7.2.0-alpha3
    • Component/s: engine
    • Labels:
      None

      Description

      Setting variables on a start event at event "start" is not reflected in the history tables.

      BPMN snippet:

      <startEvent id="theStart">
      <extensionElements>
      <activiti:executionListener event="start" expression="$

      {execution.setVariable('aVariable', 'aValue')}

      "/>
      </extensionElements>
      </startEvent>

      Hint at solution:
      ExecutionEntity#createSubProcessInstance does not set the correct ProcessInstanceStartContext (i.e. HistoryAwareStartContext)

        Activity

        Hide
        thorben.lindhauer Thorben Lindhauer added a comment -

        backported to 7.0 and 7.1

        Show
        thorben.lindhauer Thorben Lindhauer added a comment - backported to 7.0 and 7.1

          People

          • Assignee:
            sebastian.menski Sebastian Menski
            Reporter:
            thorben.lindhauer Thorben Lindhauer
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development