Workflow Configuration

Workflow Configuration allows you to override default state 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).

In this table you’ll find all possible options that you can set for your workflow:

Option

Values

Description

shape

<shapeName>

The default shape for current workflow’s states, for full list of possible options, see JSON State Shape values

default

hex color

The default color for current workflow’s states

previous

hex color

The default color for the object’s prevous state

current

hex color

The default color for the object’s current state

next

hex color

The default color for the object’s next possible states which are not selectable

selectable

hex color

The default color for the object’s selectable possible states, this apply only when Allow State Transitions is enabled

noState

hex color

The default color for the current workflow’s no state state

fill

true or false

Whether to use colors to fill or for stroke color

light

true or false

When fill option is set to false, whether to use light color to fill the shape or for text

style

  • b

  • i

  • bi

The font style for current workflow’s states text, use :- b for bold - i for italic - bi for bold italic

size

number

The size in pixels for current workflow’s states text

stroke

number

The width in pixels for shapes stroke, 0 for no stroke

auto

true or false

Whether to use automatic shapes for this workflow or not, this will overrides the shape option. see Automatic Sate Shapes Behavior

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}

../_images/wf-config.jpg

And this is the resulting graph for this workflow only:

../_images/wf-config-result.jpg