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

Flexible instantiation: Scope conditional events are not evaluated after creation

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Open
    • Priority: L3 - Default
    • Resolution: Unresolved
    • Affects Version/s: 7.6.0
    • Fix Version/s: 7.6.x
    • Component/s: engine
    • Labels:
      None

      Description

      Consider the following model:

      and this code:

      runtimeService.createProcessInstanceByKey("key")
      .setVariable(VARIABLE_NAME, "1")
      .startBeforeActivity("A")
      .executeWithVariablesInReturn();

      Expected result:

      A single instance of B is active. A was never active

      Current result:

      A single instance of B is active. A has been started and immediately interrupted (history entries are present).

      Reasoning:

      When the sub process scope is instantiated, the conditional event should trigger immediately and therefore instantiation should abort.

      Side note:

      The linked commit contains a similar test case of a different situation.

        mgm-controller-panel

        This is the controller panel for Smart Panels app

          Attachments

          1. diagram.png
            23 kB
            Thorben Lindhauer

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                thorben.lindhauer Thorben Lindhauer
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    Salesforce