C1 Diagram Relationships
The diagram already contains eight elements from the sample e-commerce model. Now connect them into a coherent context showing users, external systems, synchronous calls, events, and batch exchange. CRM and its three relationships will be added in the next lesson.
Use durable architectural names such as Interacts through UI, Interacts through REST API, Publishes events, Receives events, and Receives batch data. These names remain valid when an individual business process changes;
record the specific purpose in the description and reveal it in data flows.
Relationship Direction
A relationship points from the element that knows about the dependency and initiates the interaction to the element it uses. The arrow represents that dependency direction, not the direction of a response.
On structural diagrams, a database or message broker should not normally point to its clients. The storage service or broker does not know those clients; the system that writes or reads data, or publishes messages, initiates the connection.
Method 1: Left Panel
Select New: Relationship, then choose the source and target manually. This method makes direction explicit because both ends are visible in the form.
Method 2: Element Menu
Select the source element, open its quick-action menu, and choose to create a
relationship. The source is filled automatically. If the target does not yet
exist, hold Ctrl or ⌘; a plus button appears beside the target field so you
can create it without leaving the relationship form.
Method 3: Shift Selection
For the fastest method, select the source, hold Shift, and click the target.
SysCraft opens the form with both ends filled in. Create subsequent relationships
in the same order.
Name and Description
The name should express a durable interaction type, such as an API call or event publication. A specific business action belongs in a process step and should not be duplicated in the relationship name. Record purpose and context in the description.
A pair of elements may have several architecturally distinct interactions. Create a separate relationship for each one.
Result
With all nine relationships saved, the C1 diagram shows the e-commerce system's main context: two users, six systems, and several interaction styles. The next lesson adds CRM to the same model.
Chapters
00:00— three ways to create a relationship;00:19— relationship from the left panel;00:34— selecting the source for the second method;01:02— the fastest method with Shift;01:23— the next pair of elements;01:34— relationship direction for storage and brokers;02:34— all nine relationships completed.
Previous lesson: C1 Diagram Elements.
Next lesson: Complete the C1 Diagram.