Script for invoking custom triggers.
A custom trigger is a block of code within a node's Type Trigger Script member that responds to a string in the "trigger" attribute. This script invokes custom triggers in each node within a folder structure, for example to initialise the structure after an import. Nodes without a trigger script are ignored.
Trigger.apply(node,trigger,recursive) |
Apply the trigger to the node. If recursive is true (the default), apply the trigger to all the node's children. A typical use of this is to apply the init trigger to a structure after an import, such as. Trigger.apply(node,"init"); If any of the trigger scripts return an error, the apply will stop and the error will be available in the application error fields. The script will perform commits, extend the timeout. It will restore the application attribute "trigger" if it has been set. |