Overview
The order workflow state machine diagram maps the lifecycle of WorkflowEntityBase — from initial Draft through Submitted, Approved, and Completed states, with branching to Rejected or Cancelled. Each transition is labeled with the triggering event and responsible actor.
Key takeaways
- Draft is the default initial state — no business rules apply until submission
- Approved requires a manager decision; both approve and reject paths exist
- Cancelled can be triggered by either the applicant or an approver
- The
FlowStatefield tracks workflow engine state independently ofStatus
Related
- Entity Inheritance — WorkflowEntityBase in the entity hierarchy
- Vertical Slice — how state transitions are implemented in handlers