Flexible instantiation: Scope conditional events are not evaluated after creation

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Won't Fix
    • Priority: L3 - Default
    • 7.6.x
    • Affects Version/s: 7.6.0
    • Component/s: 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

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

                Created:
                Updated:
                Resolved: