18.13Scenario 12 — Choice routing
Prompt:
“If operation is DELETE, deactivate the customer; otherwise upsert it.”
Conceptually:
<choice>
<when expression="#[payload.operation == 'DELETE']">
<flow-ref name="deactivate-customer"/>
</when>
<otherwise>
<flow-ref name="upsert-customer"/>
</otherwise>
</choice>
You can explain:
Choice
≈ if / else