Postwork script scripts are commonly used to perform tasks after task is completed. This script may be useful like for updating databases or generating documents by the user entered data.
Because task is already completed, some operations (example; trying to set an action on current workitema current work item) are invalid at this stage and error is thrown.
Postwork script defined area is reached from a related task. When you click on the "Postwork script" button on the task, postwork script page will open.
...
In postwork script following objects are available:
$WorkItem
Current workitem instance.
$Xml
Xml data navigator for data model.
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
...
Updating data model by action
Assign Assigns completion date to Data Model if user selects "Approve" action.
...