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

Flexible instantiation: Scope conditional events are not evaluated after creation

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Won't Fix
    • Icon: L3 - Default L3 - Default
    • 7.6.x
    • 7.6.0
    • engine
    • None

      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.

        This is the controller panel for Smart Panels app

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

                Created:
                Updated:
                Resolved: