Legacy Workflows Documentation

Looks like you followed an old link. Comala Workflows is now Comala Document Management.

Please access our latest documentation here Welcome to Comala Document Management

Documentation for other versions of Comala Workflows are available too.

(info) This space is no longer being updated.

Purpose

The task macro is used to define tasks within a state in a workflow. Page tasks are created when the page's state is changed to the containing state. The task macro must be used inside a state macro.

Syntax

{task} Syntax
{state:state_name|completed=next_state}
    {task:task_name[|assignee=assignee_name][|note=note_text][|duedate=duration]}
{state}

Parameters

Parameters

Mandatory

Default

Description

First unnamed parameter

Yes

The task name. Names should be unique within a state.

assignee

No

A user name or a Value Reference to whom the tasks is to be assigned. If the assignee name is not specified, any user authorized to edit the page can give the approval.

note

No

Additional note to go with the task.

duedateNoDuration of time before the task is due (following the ISO 8601 standard for duration). For more details, please see Duedate below.

Example

In this example the tasks Sales Numbers and Payroll Numbers will be created when a page's state is set to Pending.

{workflow}
    {state:Pending|taskable=true}
        {task:Sales Numbers}
        {task:Payroll Numbers}
    {state}
    ...
{workflow}

Duedate

Some examples of duedate parameter values:

Duration

Value to use

1 year

P1Y

1 month

P1M

1 day

P1D

1 hour

PT1H

1 minute

PT1M

  • No labels