Skip to main content

Order-State Actions

Transitions explain how an order changes state. A state can also show what the system does on entry, during processing, and before exit. Add this behavior to the Paid state.

Full lesson walkthrough in the selected color theme.

Starting Lifecycle​

The diagram already contains the success path, two cancellation paths, and a formal rule for post-payment cancellation.

Loading image...
With the success and alternative paths complete, the state's internal behavior can be refined

Select the State​

Select Paid. Its properties contain three behavior fields: entry action, internal do action, and exit action.

Loading image...
Three properties separate the start, ongoing work, and completion of state processing

Entry Action​

Set Entry action to Record Payment. This action runs once when the order enters the Paid state.

Loading image...
The entry action marks the beginning of paid-order processing

Do Action​

Set Do action to Prepare Order for Fulfillment. A do action describes work that continues while the order remains in the state.

Loading image...
The do action represents ongoing work inside the Paid state

Exit Action​

Set Exit action to Send Order to Delivery. It runs before the next transition and completes the current stage.

Loading image...
The exit action prepares the order for the next lifecycle stage

Result​

After clearing the selection, SysCraft displays all three actions inside the state block in execution order: entry, ongoing work, and exit.

Loading image...
The diagram explicitly shows the complete processing sequence for a paid order

Chapters​

  • 00:00 — purpose of state actions;
  • 00:06 — selecting Paid;
  • 00:10 — three action types;
  • 00:15 — entry action;
  • 00:26 — do action;
  • 00:38 — exit action;
  • 00:47 — reviewing the result.

Previous lesson: Order Cancellation and Transition Properties.

Next lesson: Checkout Data Flow.