Skip to main content

Binding Diagrams to the Model

In SysCraft, diagrams are not standalone artifacts. Every diagram is always bound to the architecture model and reflects its current state. How to create a diagram and add elements to it is described in Create a diagram.

Loading image...
BPMN editor with XML actions and model-binding controls.

What binding means​

Binding a diagram to the model means that the diagram does not store architecture data on its own, but serves as a visual representation of the model.

This is expressed as follows:

  • elements on the diagram always reference existing model entities (systems, containers, components, and other architectural elements) and do not exist in isolation within the diagram;

  • the diagram reflects the state of the model, not its own structure: changes made in the model are automatically reflected on all diagrams where the corresponding elements are used;

  • the diagram is governed by the user's working context (selected branch, domain, access level) and can:

    • restrict available actions;
    • hide or show elements;
    • prevent changes if they are not allowed in the current context.

Why binding is used​

Binding diagrams to the model makes it possible to:

  • maintain a single source of architectural truth;
  • prevent desynchronization between diagrams and the model;
  • use the same elements on different diagrams without duplication;
  • ensure correct behavior for branches, domains, and access rights.

If you need to understand why an action is unavailable on a diagram, check the UI context, access rights, and diagram mode.


Difference from free-form diagrams​

Unlike free-form diagrams and general-purpose editors:

  • SysCraft diagrams cannot be treated as independent documents;
  • an element cannot be changed on a diagram if this conflicts with the model rules;
  • a diagram always reflects the current state of the selected branch and domain.

This approach allows diagrams to be used as a working architecture tool, not as static illustrations.


Additional:

Video lesson: Components and C3 model binding​

Practical walkthrough: c3 components and model binding.