First Data-Flow Steps
In the previous lesson, you prepared a dynamic diagram and an empty checkout flow. Now add a command and its response, then validate the scenario in step-by-step playback mode.
Create the First Step from the Form
Open the flow and enable edit mode. The add-step button appears in the bottom panel.
Select the add button, then choose Element Interaction. This step type describes a directed exchange between two diagram participants.
Select Command, then choose the initiator and target. A command represents a call that changes data or starts an action in the target subsystem.
If the selected elements have only one suitable relationship, SysCraft selects it automatically. Enter a name and brief description, then save the step.
In the sample model, Frontend is the initiator and Order management subsystem
is the target. Their structural relationship has the durable name Interacts through REST API, expressing a lasting dependency and direction of knowledge.
The specific action Submits cart for checkout belongs to this data flow.
After saving, the command appears both in the step list and on the dynamic diagram.
Create the Response with the Keyboard
Add the next step with the keyboard. Press A, wait for the step-type hints,
and press 1 for Element Interaction. When the next hint appears, press 3
for Response.
Select the command being answered, then enter the response name and description.
Save with Ctrl + Enter on Windows and Linux or ⌘ + Enter on macOS.
A response does not require a separate reverse relationship. Its step type determines direction, so the command and response can share one structural relationship between the participants.
Step-by-Step Playback
Start the flow from the bottom panel. The current step is highlighted on the diagram, and its description and related materials appear in the side panel.
Move to the next step to see the response direction, then stop playback after validation.
Chapters
00:00— first flow steps;00:10— edit mode;00:16— adding a step;00:17— selecting the type;00:21— command;00:26— finding the initiator;00:33— selecting the target;00:42— command name;00:47— saving the command;00:59— selecting a step type with the keyboard;01:14— response description;01:16— saving with the keyboard;01:20— command and response;01:25— starting playback;01:28— moving to the next step.
Previous lesson: Checkout Data Flow.
Next lesson: Parallel Order Preparation.