Invoke Rule Sets from triggers

Applies to User roles: System Administrator

If Process Designer is not implemented in Service Manager, you must invoke a Rule Set from a Service Manager trigger, by adding the following API in the trigger's script:

lib.CaseExchange_RuleExecute.executeSingleRuleSet(record,oldrecord,RuleSetID)

The following table explains the meaning of each parameter in this API.

Parameter Description
record The new record.
oldrecord The old record.
RuleSetID

The ID of the Case Exchange Rule Set.

For example, CE_CREATE_INCIDENT.

To add a trigger that invokes a Rule Set, follow these steps:

  1. Click Tailoring > Database Manager. The Database Manager page opens.
  2. Type triggers in the Table field, and then click Search. The Search Trigger Records page opens.
  3. Complete the following fields:

    Field Description
    Trigger Name The name of the trigger.
    Table Name The file to be monitored by this trigger.
    Trigger Type

    Select the specific activity to react to:

    1 - Before Add - When adding a new record to this file, launch the application prior to committing the addition.

    2 - After Add - When adding a new record to this file, launch the application after committing the addition.

    3 - Before Update - When modifying a record in this file, launch the application prior to committing the change.

    4 - After Update - When modifying a record in this file, launch the application after committing the change.

    5 - Before Delete - When deleting a record in this file, launch the application prior to performing the deletion.

    6 - After Delete - When deleting a record in this file, launch the application after performing the deletion.

    Note: Only triggers of type 4 (After Update), and type 6 (After Delete) are supported by Cascade Updates.

    Application The RAD application to be launch by this trigger. If you only intend to invoke a Rule Set by using this trigger, leave this field empty.
    Script

    Call the following API by using appropriate parameters:

    lib.CaseExchange_RuleExecute.executeSingleRuleSet(record,oldrecord,RuleSetID)

  4. Click Add.