Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Workflow macros define the major functionality of your workflow template, such as States states (and the Transitions the transitions between them),  Tasks tasks and Triggers triggers.

The workflow  macromacro must be the first macro in your template, and must contain at least one state macro in its body. The workflow is created by adding macros such as the state macro, to the body of this workflow macro.

Basic Syntax

In this example workflow, there are two states and one trigger.

Code Block
languagetext
{workflow:name=Example}
   {state:Start|submit=Stop}
   {state}
   {state:Stop|submit=Start}
   {state}
   {trigger:statechanged|state=Stop}
      {set-message}State is: Stop{set-message}
   {trigger}
{workflow}

Comala Document Management Templates

Templates are stored at

Editing a workflow template

A workflow template can be edited using the visual editing tool workflow builder. Changes made in workflow builder change/update the markup automatically.

Editing of the workflow template markup can be done directly in the markup editor. Changes made in the markup editor change/update the workflow in workflow builder automatically.

Triggers can can only be created using markup. This markup can be added either using the markup editor or can be copied and pasted into the Triggers option in the Edit Workflow panel in workflow builder.

All Examples

See: Examples

Macros

Filter by label (Content by label)
showLabelsfalse
max500
showSpacefalse
sorttitle
excerptTypesimple
cqllabel = "macro-workflow" and label = "macro" and space = currentSpace ( )

workflow macro - body macros

Filter by label (Content by label)
showLabelsfalse
max500
showSpacefalse
sorttitle
excerptTypesimple
cqllabel = "body-workflow" and label = "macro" and space = currentSpace ( )

state macro - body macros

Filter by label (Content by label)
showLabelsfalse
max500
showSpacefalse
sorttitle
excerptTypesimple
cqllabel = "body-state" and label = "macro" and space = currentSpace ( )

trigger macro - body macros

See: Actions