[Enterprise Extensions only]

How to place a trigger point

The TriggerPoint class is the primary interface of the BRBeans Trigger Point Framework, and is used to transfer control to the Trigger Point Framework in order to find and fire those rules in the application's trigger point.

Perform the following steps to place a trigger point in your code:

  1. Create an instance of the com.ibm.websphere.brb.TriggerPoint class. All rule triggers must be performed against an instance of this class. You should also set any desired strategies on the TriggerPoint instance.
  2. Gather together the parameters to be passed on the trigger.

    For the simple trigger() and triggerClassifier() methods this includes the following:

    The triggerSituational method differs in that it takes two sets of firing parameters and two sets of rule identification information: one set for the classifier rules and one for the classified rules.

  3. Invoke the trigger(), triggerClassifier(), or triggerSituational() method of the TriggerPoint instance. This will actually trigger the rule(s).
  4. Process the results of the triggered rule(s)

Examples of how to code a trigger point call are shown in Types of Trigger Points - overview.

For a detailed description of the trigger point programming interfaces refer the Trigger Point Class in the BRBeans Javadoc