Skip to main content
Version: Next

Workflow Viewer

The Workflow Viewer shows a process as a diagram. It has two modes:

  • Process definition — you edit the process: its steps, the connections between them and their properties.
  • Process instance — you monitor a running process: which step is active and which are completed. The diagram cannot be changed.

Open it in the sidebar under Applications → Processes → Viewer, or with the address /admin/workflow-viewer. Next to it in the menu, Templates opens the search for process definitions (/search/process_definition) and a further entry the search for process instances (/search/process_instance).

How a Process Is Stored​

A process definition is an entity of the type process_definition. Its diagram is not a file — every step, connection and condition is an entity of its own that belongs to the definition:

Part of the diagramStored as
Start eventprocess_none_start_event
User taskprocess_user_task
System taskprocess_service_task
Exclusive gatewayprocess_exclusive_gateway
Parallel gatewayprocess_parallel_gateway
End eventprocess_none_end_event
Connection (edge)process_sequence_flow
Condition of an edgeprocess_condition

The steps are linked to the definition via process_has_node. The position of each step in the diagram is stored in the trait bpmn_props.

Open a Process​

  1. In Select type…, choose Process definition (to edit) or Process instance (to monitor).
  2. In the second field, choose the definition or instance. It is enabled once a type is chosen. Definitions are listed as name (key), instances by their key, each with its lifecycle status. You can search by label, key, ID or status.

The address then changes to /admin/workflow-viewer/<type>/<id>, so you can bookmark it or send it.

As long as nothing is chosen, the page shows No process selected.

Workflow Viewer The Workflow Viewer before a process is selected

Process definitions cannot be created or deleted in the Workflow Viewer.

Edit a Process Definition​

The editor has three columns: the palette Steps on the left, the canvas in the middle, and on the right the properties of the selected step and the list Versions.

Editing a process definition: step palette, canvas and the properties of the selected step

Steps​

StepShapeNotes
Start EventThin circleOnly outgoing connections. Default name Start.
User TaskBox with A task for a person; shows Assigned to ….
System TaskDashed box with A task the system carries out; shows its operation.
Exclusive GatewayDiamond with ×Exactly one outgoing branch is taken, chosen by conditions.
Parallel GatewayDiamond with +All outgoing branches are taken.
End EventThick circleOnly incoming connections. Default name End.
  • Add a step: drag it from the palette onto the canvas. Or click it (or focus it and press Enter) — it is placed in the middle of the canvas.
  • Connect two steps: drag from the handle on the right of one step to the handle on the left of the other. Not allowed: a connection from a step to itself, out of an End Event, or into a Start Event.
  • Delete: select a step or connection and press Delete or Backspace. There is no button and no confirmation.

The canvas has controls for zoom, fitting the view and locking, a minimap and a grid.

Properties​

Click a step or connection to edit it on the right. Every step has a Name.

User Task

FieldWhat it does
Assignee (User)The person the task is shown to (Select user…).
Form fieldsThe fields the person fills in. Add field adds one with Label, Key, a type (Text, Enum or Boolean) and the switch Required; enum fields also need Options (comma-separated). Remove deletes the field.

System Task

FieldWhat it does
OperationWhat the system does: Notify assignee, Update entity status or Create relationship.
Result variableName under which the result is stored, e.g. status_result.

Exclusive Gateway: the conditions are set on its outgoing connections.

Connection (edge)

FieldWhat it does
ConditionWhen this branch is taken. Choose a preset (for example approved = true) or Custom… and enter an expression in the form name operator value, for example status = "ok". The condition is shown as the label of the connection.
Default edge (exclusive gateway fallback)Takes this branch if no condition applies. The connection is labelled default; a condition cannot be set.

Auto-Layout​

Auto-Layout arranges the steps from left to right, starting with the Start Event, and fits the view. It only changes positions; they are stored with Save.

Validation​

The editor checks the process while you work. Steps with a problem get a red border, and a red banner lists the first three problems (…and N more). The rules:

  • There is a Start Event and an End Event.
  • Every step leads to an End Event.
  • A gateway has at least two branches.
  • Every outgoing connection of an exclusive gateway has a condition or is the default edge; at most one is the default edge.
  • A system task has an operation.
  • The keys of form fields are unique, and enum fields have options.

Save and Publish​

ButtonWhat it does
SaveWrites the diagram into the EP entities (creates, changes and deletes steps, connections, conditions and positions). There is no separate draft. Validation problems do not prevent saving. Message: Process saved. — or Saved with N validation issue(s).
PublishSaves first. If the process has validation problems, it stops with Fix validation issues before publishing. Otherwise it hands the definition to the workflow service: Process "<name>" published. If the service finds problems, it shows them instead.

Neither button asks for confirmation.

Monitor a Process Instance​

With Process instance, the diagram is read-only: you cannot move, select or edit anything.

A running process instance with the status legend

  • The header shows the process name, Instance <key> · <target entity> and the status of the instance: running, completed, cancelled or failed.
  • Open definition opens the process definition of this instance.
  • Steps and connections are coloured by their status:
ColourStatus
GreyPending
BlueActive — the current step
OrangeSkipped
GreenCompleted
RedCancelled
  • A user task shows Assigned to <user>.

If the instance or its definition cannot be found, the page shows Workflow instance not found, Instance not found or Process definition not found.

Current Limitations​

  • Any signed-in user can open the Workflow Viewer; rights are not checked yet.
  • Many texts are shown in English in every UI language.
  • Process definitions cannot be created or deleted here.
  • Versions are not supported yet: the header and the list Versions always show v1 · draft, also after publishing.
  • The operations of a system task are a fixed list.
  • There is no undo and no warning about unsaved changes.
  • Instances cannot be started, completed or cancelled here, and there is no history of an instance.