Transitions

Transition types

Transitions cause the workflow to move from one state to another state.


State transitions are

  • state selection transitionsĀ including theĀ submitĀ (single destination state); theĀ selectĀ transition (destination state chosen from one or more states);Ā no selection allowed andĀ All states (select one of any of the states)

  • state content change transitionsĀ includingĀ include content review transitions (approved and rejected);Ā content update transition (updated), content expiry transition (expired); tasks completed transition


A state select transition option will be displayed in the workflow popup on the page.


If a content review has been added to the state, the popup will display the Approve and Reject buttons for the approval.


Other state content transitions will be displayed in theĀ workflow builder visual flowchart diagram.

More than one transition type may be added to a state but a state selection transition cannot be used in a state with a content review (approval).


Event trigger transition

An event trigger transition listens for a workflow event (for example pagecreated, pageapproved, labeladded) and uses a macro (for example theĀ Ā state-selectionĀ orĀ approve-page macro) to action the transition.

Event trigger transitions are displayed as workflow Rules in workflow builder. This transition is not displayed in the workflow builder visual flowchart diagram.


Destination states

For different types of workflow transition the destination state can beĀ selected by a user orĀ added by the workflow.

The default transition for a new state is to allow the user to select any other state in the workflow using the workflow popup.


Transition events

When a transition occurs it is viewed by the workflow as anĀ event.Ā The workflow events forĀ transitions include

  • pagestatechanged

  • newsstatechanged

  • statechanged


Adding a state transition to a workflow

Use the markup editor or workflow builder toĀ add a select transitionĀ or aĀ content transition for a state.


InĀ workflow builderĀ you can easily add a transition from a workflow state using the transitions editor.


The Approved and Rejected transitions for a content review are only available in the transitions editor after an approval has been added to the state.


The state must have

  • a due date for theĀ Expired transition.

  • an approval for the Approved and Rejected transitionsĀ 

The Approved and Rejected transitions will only be available in workflow builder if the state has an approval.


Tip: you can view state diagrams using theĀ workflow builder.


Adding an event trigger transition to a workflow

Transitions using an event trigger can also be added to a workflow. The trigger can be set to listen for a specific workflow event. The trigger must be added as markup using either the markup editor or the workflow builder.


In workflow builder, add the trigger by copying and pasting the trigger markup into the workflow editor.


Note that a transition using an event trigger will not be displayed in the workflow builder visual workflow diagram.


Transition types