Workflow Configuration
These configurations allows you to override the default graph layout, state and transition appearance set in Global Configuration for a given workflow. To set workflow configuration, simply add your configuration in workflow description using Simplified JSON Syntax.
Warning
After you have made changes to workflow, you’ll need to update metadata cache (see Update Workflows).
Layout options
Option |
Values |
Description |
|---|---|---|
|
|
Define current workflow graph direction: Top to Bottom or Left To Right |
|
|
Define current workflow graph alignment, where: U is for Up, D is for Down, R is for Right and L is for Left |
|
|
Define current workflow graph tree layout type |
|
|
Whether to enable cyclic layout for current workflow or not, works only for cyclic graphs |
States options
Option |
Values |
Description |
|---|---|---|
|
|
The default shape for current workflow’s states, for full list of possible options, see JSON State Shape values |
|
hex color |
The default color for current workflow’s states |
|
hex color |
The default color for the object’s prevous state |
|
hex color |
The default color for the object’s current state |
|
hex color |
The default color for the object’s next possible states which are not selectable |
|
hex color |
The default color for the object’s selectable possible states, this apply only when Allow State Transitions is enabled |
|
hex color or |
The default color for the no state state. To hide this state from the workflow set the value to |
|
|
When set to |
|
|
Whether to use colors to fill or for stroke color |
|
|
When |
|
|
The font style for current workflow’s states text, use :- |
|
|
The size in pixels for current workflow’s states text |
|
|
The width in pixels for shapes stroke, 0 for no stroke |
|
|
Whether to use automatic shapes for this workflow or not, this will overrides the |
Transitions options
Option |
Values |
Description |
|---|---|---|
|
|
Define the interpolation type used for current workflow’s transitions. Default value is |
|
|
Define the stroke style used for current workflow’s transitions. Default is |
|
|
Define current workflow transition arrows. Default is |
Example
This configuration set in workflow description will set all its state shapes to rectangle and change colors of current and selectable states:
{shape:rect, current:#ff8c00, selectable:#f00}
And this is the resulting graph for this workflow only: