Skip to main content

Workflow actions

Workflow actions help you to transition the workflow from one state (Current workflow state) into another state (Target workflow state).

You can define workflow actions on each workflow state. A proper definition of states and actions leads to a valid workflow diagram, shown on the workflow itself.

Example of states:

  • Running
  • Paused
  • Stopped

Example of actions:

  • Pause
  • Run
  • Stop
  • Resume

For example:

flowchart TD
Start["🟢"] --> Running;
Running{Running} -->|Pause| Paused;
Running{Running} -->|Stop| Stopped;
Paused{Paused} -->|Stop| Stopped;
Paused{Paused} -->|Resume| Running;
Stopped -->|Run| Running;