Skip to content
bitzorcas
EN

Concept

Order Workflow State Machine

Workflow entity state transitions from draft through approval to completion.

Last updated

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 FlowState field tracks workflow engine state independently of Status