Skip to main content
Version: Next

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.

  1. Start -> User Task (Submit) -> Gateway.
  2. Gateway branch A: pass -> End.
  3. Gateway branch B: fail -> User Task (Rework) -> User Task (Resubmit) -> Gateway.

Operational Steps

  1. Start one execution instance.
  2. In first review, route to fail branch using branch key.
  3. Complete rework task and resubmit.
  4. Route to pass branch and complete workflow.

Control Rules

  1. Keep branch-key naming consistent.
  2. Avoid ambiguous gateway conditions.
  3. Record reason codes for every rework cycle.

Failure Handling

  1. If wrong branch triggered, terminate instance only when recovery is impossible.
  2. If paused too long, resume with owner confirmation.
  3. If service task fails repeatedly, escalate with runtime evidence.
  1. WorkFlow GateWays
  2. WorkFlow User Tasks
  3. Startup and Connection