Skip to content

Task Prework Script

Prework scripts are commonly used to control process data or task state before it's assigned to the users.

Prework script defined area is reached from a related task. When you click on the "Prework script" button on the task, the prework script page will open.

Common operations

Auto Process Task

Automatically processes the current work item, without assigning it to the users, and skips to the next step of a workflow.

Assign action

1
$WorkItem.SelectedAction = 'Approve';

Dynamic Deadline Date

Sets deadline date by user-entered data.

Assign action

1
$WorkItem.DeadlineDate = $Xml.EvaluateDateTime('PaymentDate');