Overview
Workflow macros define the major functionality of your workflow template, such as States (and the Transitions between them), Tasks and Triggers.
The {workflow}
macro must be the first macro in your template, and must contain at least one {state}
macro in its body.
Basic Syntax
In this example workflow, there are two states and one trigger.
{workflow:name=Example} {state:Start|sumbit=Stop} {state} {state:Stop|submit=Start} {state} {trigger:statechanged|state=Stop} {set-message}State is: Stop{set-message} {trigger} {workflow}
All Examples
See: Examples
Macros
-
workflow macro — Defines a workflow tempalte
{workflow} body macros
-
description macro — Describe your workflow templates.
-
pagefooter macro — Add content to page footer
-
pageheader macro — Add content to page header
-
read-ack macro — Request user read confirmation of content
-
state macro — Define workflow states & basic transitions
-
trigger macro — Trigger actions when events are fired
-
workflow-instructions macro — Add message to "create page/blog" screen
-
workflowparameter macro — Define editable workflow Value References
{state} body macros
-
approval macro — Add content-focus reviews to states
-
state-selection macro — Specify direct state transitions
-
task macro — Add tasks to workflow states
{trigger} body macros
See: Actions