Choose a review path
A document can take either a summary review or a full review. Continue from your linear model or open the linear model as a starting point, or open the completed choice model before running the examples below.
Route one token
Section titled “Route one token”- Put an Exclusive Gateway between the start and the reviews. Add a User
Task called Review full document and keep Review summary on the
other path. Set the full review’s General → ID to
reviewFulland keepreviewSummaryon the summary review. Assign both to thereviewerrole. - Add a Boolean process field
detailedunder Process fields. Select the outgoing flow to the full review. In the Getriebe properties, set its Condition expression todetailed. Select the flow to the summary review and set Default path. - Before the end event, add another Exclusive Gateway with one incoming flow from each review and one outgoing flow. That merge forwards a token as soon as it arrives. It does not wait for the unused review.
Use Validate and deploy on your choice model or on the completed file. Since its BPMN namespace and process ID match the first part, the server records it as a new version of the same model.
node run-workflow.ts tutorial choice summarynode run-workflow.ts tutorial choice detailedThe first run sends detailed: false and the reviewer sees reviewSummary.
The second sends detailed: true and the reviewer sees reviewFull.
Both instances complete after their one review. Compare the rules in
exclusive routing.
Try both choices in the interactive routing diagram.
Continue to run two checks in parallel.