Activating and Deactivating a Trigger

The Trigger Manager program only uses eService Trigger Program Parameters objects that are in the Active state.

Important: Deactivating or activating triggers can cause unexpected results. You should research the purpose of the trigger before you activate or deactivate it. Some triggers have been configured so that they cannot be deactivated.

  1. Open the Run MQL window:
    1. From the compass, select Collaboration and Approvals.
    2. In the navigation pane, click Utilities > Run MQL.
    To run an MQL command, enter the command in the MQL Command box and click Run or press Enter.
  2. To set the context for the MQL session, run this command:

    set context user creator;

  3. Use the Trigger Report utility to find the name of the needed eService Trigger Program Parameters object. For more information, see Generating a Trigger Report.

    You can also use MQL to list the triggers:

    temp query businessobject "eService Trigger Program Parameters" * *;

    This command generates a long list. You can narrow down the list by including the administrative type (which is used in the name of the object). For example:

    temp query businessobject "eService Trigger Program Parameters" Relationship* *;

  4. To determine if the object is active, run this command:

    print bus "eService Trigger Program Parameters" <NAME> <REV>;

    For example:

    print bus "eService Trigger Program Parameters" RelationshipEBOMModifyToAction markDirty;

    The current state information shows if the object is active or inactive.

  5. To deactivate a trigger, run this command:

    modify businessobject "eService Trigger Program Parameters" <NAME> <REV> current Inactive;

    where <NAME> and <REV> identify the object. For example:

    modify businessobject "eService Trigger Program Parameters" 
         RelationshipEBOMModifyToAction markDirty
         current Inactive;

  6. To activate a trigger, run this command:

    mod bus "eService Trigger Program Parameters" <NAME> <REV> current Active;

    where <NAME> and <REV> identify the object. For example:

    mod bus "eService Trigger Program Parameters" 
         RelationshipEBOMModifyToAction markDirty
         current Active;