A hook is an entry point, like a trigger, to a piece of code that runs
at specific points during a user's client session. Rational ClearQuest supports
the following types of hooks:
- Field hooks. Use field hooks to check a field value and possibly adjust
other fields. For example, you can use a field hook to validate the contents
of a field or assign it a default value.
- Action hooks. Use action hooks to implement tasks at key points in the
change request lifecycle. Unlike field hooks, action hooks are typically associated
with events that affect the entire change request, not just one particular
field. For example, you can use an action hook to validate the entire change
request and send e-mail notifications when the action is complete.
- Record scripts. Use record scripts to perform specific tasks at runtime.
Record scripts are specific to a record type and are usually associated with
form controls.
- Use global scripts to define libraries of routines that can be shared
by all record types in your schema.
In this module you will perform the following exercises: