Skip to main content

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.

A command, its response, and step-by-step flow playback.

Create the First Step from the Form​

Open the flow and enable edit mode. The add-step button appears in the bottom panel.

Loading image...
In edit mode, the bottom panel provides the action for adding scenario steps

Select the add button, then choose Element Interaction. This step type describes a directed exchange between two diagram participants.

Loading image...
An element interaction represents a command between subsystems

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.

Loading image...
The initiator, target, relationship, and content form the first scenario step

After saving, the command appears both in the step list and on the dynamic diagram.

Loading image...
Frontend sends the command to the order subsystem over the existing REST relationship

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.

Loading image...
The response refers to the command and returns over the same relationship

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.

Loading image...
The flow contains a forward command and a response in the opposite direction

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.

Loading image...
The command is highlighted and its details are displayed

Move to the next step to see the response direction, then stop playback after validation.

Loading image...
The second step highlights the response and opens its details

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.