Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Instance termination script is executed for every terminated (forced by the administrative or the system) workflow  workflow instances. This script may be useful for to rollback any Instance Opening Script operations.

When If any error occurred while occurs while executing the script workflow, termination is aborted, and all operations are rollbacked also.

In this script, you can use use the $Instance to get or set initiated instance properties, $Initiator variable specifies the who is initiated the workflow instance, but variable it can be null for the module type tasks. You can also refer to the right panel to list the available scripting objects.

Unlike task prework or postwork scripts, the $Xml variable is attached to the data model root element, not to the pool element.