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.
Starting Lifecycle
The diagram already contains the success path, two cancellation paths, and a formal rule for post-payment cancellation.
Select the State
Select Paid. Its properties contain three behavior fields: entry action,
internal do action, and exit action.
Entry Action
Set Entry action to Record Payment. This action runs once when the order
enters the Paid state.
Do Action
Set Do action to Prepare Order for Fulfillment. A do action describes work
that continues while the order remains in the state.
Exit Action
Set Exit action to Send Order to Delivery. It runs before the next
transition and completes the current stage.
Result
After clearing the selection, SysCraft displays all three actions inside the state block in execution order: entry, ongoing work, and exit.
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.