StatusExit Use Example
Basic StatusExit Use
In this example we use StatusExit in a CompleteStatus process. The request is currently at Manager status. From the canvas, you can see this status has 2 exits - Approve and Reject.
The following are the inputs for Approve StatusExit and Reject StatusExit. You can tell the difference by the Service Id on top left of the screen shots.
Inside the BinaryDecision service, we read the input value passed by ExecuteWorkflow service. We can do that since BinaryDecision is inside CompleteStatus, which only runs when ExecuteWorkflow is called.
If the Action is “Approve”, then it goes to Admin status. Otherwise, it goes to End status.