Scenario: Exception and Rework
This scenario handles exception routing and rework loops in workflow operations.
Scenario Goal
Route failed review items to rework and then return to approval.
Recommended Model Pattern
- Start -> User Task (Submit) -> Gateway.
- Gateway branch A: pass -> End.
- Gateway branch B: fail -> User Task (Rework) -> User Task (Resubmit) -> Gateway.
Operational Steps
- Start one execution instance.
- In first review, route to fail branch using branch key.
- Complete rework task and resubmit.
- Route to pass branch and complete workflow.
Control Rules
- Keep branch-key naming consistent.
- Avoid ambiguous gateway conditions.
- Record reason codes for every rework cycle.
Failure Handling
- If wrong branch triggered, terminate instance only when recovery is impossible.
- If paused too long, resume with owner confirmation.
- If service task fails repeatedly, escalate with runtime evidence.