About Action Expressions
You can create an action expression to apply various changes to a task. Because of the wide range of capability with the task expression language, you must specify that you want to apply a change to the task when you create an expression that directly affects some aspect of the task. Such changes include:
Setting the task assignment
Setting the task status
Setting the task priority
Resuming the task
Setting dates and times associated with the task
When you update a task with an expression, first assign values and then always conclude the expression with the applyChanges (Update) action or the applyChangesNoAccept action. For example, this action expression sets the task priority to high:
#{currentTask.taskInfo.priority} = "high"; #{currentTask.applyChangesNoAccept};
This expression was built as follows:
The
#{currentTask.taskInfo.priority} portion was selected from the Add Field list.
The "assignment" operator = was selected from the Add Operator list.
The priority value "high" was selected from the Add Field list.
The second element in the expression.
#{currentTask.applyChangesNoAccept}, was chosen from the Add Field list.
If the applyChangesNoAccept action is not present, the action will not be applied to the task.
When setting the task status to Complete, the applyChangesNoAccept action is not required:
#{currentTask.completeTask}
Related Topics