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

Parallel and inclusive Gateway not executing according to BPMN spec

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Unresolved
    • Icon: L3 - Default L3 - Default
    • None
    • 7.3.0-alpha1
    • engine

      The execution of the Parallel Gateway is not according to the BPMN 2.0 specification.

      The operational semantics in the spec document formal/2011-01-03 on page 434 are defined like this:

      "The Parallel Gateway is activated if there is at least one token on each incoming Sequence Flow.
      The Parallel Gateway consumes exactly one token from each incoming Sequence Flow and produces exactly one token at each outgoing Sequence Flow.
      If there are excess tokens at an incoming Sequence Flow, these tokens
      remain at this Sequence Flow after execution of the Gateway."

      To my understanding this means that in order to process a token needs to arrive from each of the incoming Sequence Flows. However, if you have a look at the attached BPMN model. And execute the tasks in the following way:
      Complete "Task 1"
      Complete "Task 1"
      Parallel Gateway is activated, but there are tokens only on Sequence Flow "S1" and not on Sequence Flow "S2".

      I could not find in the specification what should happen if there are 2 tokens on each Sequence Flow. Perhaps another "Final Task" should be created.

      I have also created a test that can reproduce the steps.

        This is the controller panel for Smart Panels app

          1. parallel.bpmn
            13 kB
            Filip Hrisafov
          2. parallel.png
            15 kB
            Filip Hrisafov
          3. ParallelGatewaySpecExecutionTest.java
            3 kB
            Filip Hrisafov

              Unassigned Unassigned
              filiphr Filip Hrisafov
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: