You can define hooks for an action in a record type. You
can customize action hooks by including scripts that use the HCL Compass API.
Procedure
To define an action hook, use the Actions
grid:
- Start the Designer.
-
In the Schema Repository Explorer view, expand the Record Types or
Record Types - Stateless folder.
- Select and expand the record type.
- For state-based record types, expand the States
and Actions folder.
- Expand the Actions node and double-click
on an action to open the Record Actions grid.
- In the Record Actions grid, right-click in
a column and select Scripts.
- Select a scripting language.
The Scripts
editor starts.
- Define the hook using the HCL Compass API.
Results
The hook will be compiled when you validate the schema, and
any syntax or grammar errors will be marked.