Search code examples
gatewaybpmn

BPMN gateways execution


hello if I execute task1 once how many times will be executed task 4?

  1. Exclusive (XOR) gateway enter image description here
  2. Parallel (IN) gateway enter image description here
  3. Event-Based gateway enter image description here
  4. Inclusive gateway enter image description here
  5. Without gateway enter image description here

Solution

    1. Once (either after task 2 or after task 3)
    2. Once (after synchronization)
    3. is syntactically wrong, as event based gateways must be followed by catching events (or receive tasks)
    4. Once (after synchronization or after task 2 or after task 3)
    5. Twice (because of implicit flow semantics: parallelization for outgoing flows. implicit xor semantics for incoming flows)

    (I've intentionally neglected any run time errors which might happen before task 4, e.g. in case no condition attached to a data based gateway's outgoing sequence flow evaluates to true)