Docs > API > Workflow

A workflow.
Workflow inherits from Item.
Workflows cannot be published.
Properties
states An array of all the states defined in the workflow.
transitions An array of all the transitions defined in the workflow.
Methods
addTrigger(from, to, fn) Add a trigger function to a workflow transition.
findTransition(from, to) Retrieve the transition from the "from" state to the "to" state.

Can't find what you're looking for?

Let us know and we'll see if we can help.