Mutually exclusive join mode (XOrJoin)
The mutually exclusive merge mode is a workflow mode that uses mutually exclusive branch (XOrSplit) and mutually exclusive merge (XOrJoin) nodes. This mode is very useful when priority branch judgment processing is required. As shown in the following figure:
When a branch meets the conditions, it is executed immediately, and other branches that meet the conditions are no longer parsed and executed. Because they are mutually exclusive mandatory restrictions, they are uniformly represented by XOr (Exclusive Or).
In order to clarify the priority of the branch, the attribute definition of the priority is specially added to the transfer attribute. Usually the highest level is represented by: -1, and numbers such as 0, 1, 2, ... and so on represent the decreasing priority.
In this way, when the mutually exclusive branch (XOrSplit) is parsed, it will be sorted according to the priority (Priority) on the branch, and then the branch that meets the conditions will be parsed first and then transferred. Once the first branch is satisfied, other subsequent branches will no longer be executed.
The Priority sorting attribute on the transition is entered as follows: