OR vs XOR gateway

Can anyone explain the difference between the usage of XOR and OR gateway through a real world business process?...

OriginalPostID-74453

OriginalPostID-74453

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    Yes, shrutij.

    Very simply:

    Do you want all flows that apply to this instance to happen simultaneously in parallel, or do you want the process to continue as soon as any merging flows arrive at this point? OR gateway

    Do you want multiple parallel flows to begin at this point with no restrictions, or do you want the process to wait here until all incoming merging flows reach this point (wait until parallel processes are all done)? AND gateway

    Do you want one and only one process flow to move forward and make a mutually exclusive decision about the only path the flow should take from here? XOR gateway (Yes you almost always use this one. You could go months or years without ever using the others)

    Do you have to manage multiple incoming and outgoing flows at the same time using the same gateway? COMPLEX gateway
  • I do not see a difference between OR and XOR when there is only one input and multiple outputs and at any time only one output will be chosen.  Is that right?

  • No. For an XOR ("Exclusive OR")  there can only be ONE outbound transition executed from the XOR gateway. For an OR it could be one or many (even all) of the outbound transitions could be executed.

Reply Children