BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
77 / 81 · Module 18 — Interview Coding Scenarios · filtered: interview← prev⊞ allnext →

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