Preoperation and postoperation triggers
Triggers fall into one of two categories. Preoperation triggers fire, or run their corresponding procedures, before an operation takes place. Postoperation triggers fire after an operation occurs. When a user enters an HCL VersionVault command, the presence of preoperation triggers on that command are checked. If a trigger is associated with the command, the trigger procedure is fired. If the trigger procedure finishes with a failure status, the operation requested by the user is disallowed. If the trigger procedure finishes with a success status, the operation is performed.
Use preoperation triggers to prevent users from performing operations unless certain conditions apply. Use postoperation triggers to perform actions after an operation completes. For example, you may want to place a postoperation trigger on the deliver operation to notify team members whenever a developer delivers work to the project’s integration stream.