...
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.
Example:
In the prework script following objects are available:
$WorkItem
Current workitem instance.
$Xml
Xml XML data navigator for data model.
...
Auto Process Task
Automatically processes the current work item, without assigning it to the users, and skips to the next step of a workflow.
...
Sets deadline date by user-entered data.
Code Block | ||||
---|---|---|---|---|
| ||||
$WorkItem.DeadlineDate = $Xml.EvaluateDateTime('PaymentDate'); |
...