Catalog & architecture
Roles and appearance
A role is the template that decides how a participant looks. With roles you build a consistent visual language across all flows: services in green, databases in orange, external systems in gray and so on.
Fields of a role
| Field | Description |
|---|---|
| Name | The role's name (e.g. "Service", "Database") |
| Type | Participant shape: service / component, user / human, system boundary / UI, controller, domain object, database, multiple instances, queue / broker |
| Color | The participant's color |
| Prefix / suffix | Added to the displayed name (e.g. suffix " Service" → the item "Payment" shows as "Payment Service") |
Managing roles
Add, edit, reorder and delete roles in System › Roles in the top menu. A new workspace comes with ready-made roles (user, service, database, queue, external system…) that you can change freely. Roles import and export as JSON.
How roles apply
- Give a catalog item a role and every participant linked to it takes the role's appearance.
- A participant not linked to the catalog can take a role directly (Roles under Catalog & roles in the palette).
- When a role's color or affix changes, every flow using it is updated.
Legend
When Legend is on in the preview header, the roles and arrow colors used in the flow appear under the diagram, and in exports too.
Tip
With name affixes you can keep short names in the catalog ("Payment") while diagrams show the descriptive name ("Payment Service", "Order DB").