Defining action hooks

You can define hooks for an action in a record type. You can customize action hooks by including scripts that use the Rational® ClearQuest® API.

Procedure

To define an action hook, use the Actions grid:
  1. Start the Designer.
  2. In the Schema Repository Explorer view, expand the Record Types or Record Types - Stateless folder.
  3. Select and expand the record type.
  4. For state-based record types, expand the States and Actions folder.
  5. Expand the Actions node and double-click on an action to open the Record Actions grid.
  6. In the Record Actions grid, right-click in a column and select Scripts.
  7. Select a scripting language.
    The Scripts editor starts.
  8. Define the hook using the Rational® ClearQuest® API.

Results

The hook will be compiled when you validate the schema, and any syntax or grammar errors will be marked.