Skip to main content

Implement a decision gateway

In the last section we connected a worker that will return a JSON object, which is used to decide which path to take in the process. Now, we can use the JSON object to route your process by filling in the condition expression on the two sequence flows after the XOR gateway.

Use the following conditional expression for the "Pong" sequence flow:

=return="Pong"

And for the else sequence flow:

=return!="Pong"

sequenceflows-cloud

Deploy the updated process again so the specified decisions in the gateway will be used.