Skip to main content

Implement a decision gateway

In the last section we connected a worker that will return a JSON object as a result, which is used to decide which path to take in the workflow. 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 expression for the "Pong" sequence flow:

=return="Pong"

And for the Else Sequence flow:

=return!="Pong"

sequenceflows-cloud

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