Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
maxLevel6
minLevel1
include
outlinefalse
indent
excludemacro
stylenone
typeflat
printablefalse
class
separatorpipe
Excerpt
hiddentrue
nametemplate_pagesummary

Workflows are stored as templates. These contain macros that define the functionality of your workflow. Workflow templates are stored at global and space level. A template can be created and edited with workflow builder and the markup editor

Overview

Workflows are stored as templates. Workflow macros in the template define the major functionality of your workflow

template

, such as states (and the transitions between them), tasks, and triggers.

The workflow macro defines your workflow template. The workflow is then created by adding macros such as the state macro, to the body of this workflow macro.

Workflow templates

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}

The workflow template can be viewed and edited in the workflow builder visual editor.

Comala Document Management Templates

Templates are stored at

A number of

Several workflow templates are bundled with Comala Document Management and are available on installation of the app.

Workflows

Workflow templates can be created within the app for use in your instance. Workflows can also be imported to the global instance or imported to a space.

Editing a workflow template

A workflow template can be edited using the visual editing tool workflow builder visual editor.

cdm_wfbuilder_examplewf.pngImage Added

Workflow builder can be toggled between the visual editor and the markup editor.

cdm_codeeditor_wfbuilder.pngImage Added
Info

Changes made in workflow builder visual editor change/update the markup automatically.

Editing of the workflow template markup can be done directly in the markup editor.

 Changes

Info

Changes made in the markup editor change/update the workflow in workflow builder visual editor automatically.

Triggers

can

can only be created using markup.

This

The trigger 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.

Any triggers added to a workflow template are listed as Rules in the workflow builder visual editor.

cdm_wfbuilder_examplewf_wfpanel.pngImage Added

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