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

Flexible instantiation: Scope conditional events are not evaluated after creation

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Won't Fix
    • L3 - Default
    • 7.6.x
    • 7.6.0
    • engine
    • 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

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce