Using business object probe conditions

When creating a business rule, depending on the business rule detection type you select, condition expression may be specified for each business object probe used in the business rule or you can enter a condition for the business rule in general in the condition property. By entering a condition for the business object probe, you specify that only the business object probe condition acts as a filter to the events considered for the business rule. In contrast, when a condition is specified in the condition property, this condition is checked at the end to determine whether the business rule can be triggered. The condition in the condition property acts as a final guarding condition for the business rule.

Tips

Whenever possible, for optimized performance, the condition should be defined as business object probe conditions. For example, when the condition involves only one business object probe, it is more optimized to specify the condition as the business object probe condition. Doing so minimizes the memory use during runtime. An example for such a condition is the condition of "consider the event in business rule only if the order status is In Progress."

Setting business object probe conditions

The business object probe functionality allows you to define conditions on the application of business object probes, where conditions are applicable. These conditions, along with the frequency distinction, tell the system when to apply your business rule.

Note:
Only specific business object probes require the definition of conditions. For business object probes that do not require conditions, some steps below will be inapplicable.

Perform the following steps to define a business object probe condition:

  1. On the New Business Rule Properties screen in the New Business Rules Wizard, select the condition builder button.
  2. On the Graphical tab, drag-and-drop the condition result from the left hand window into the right hand build area.
  3. Select one or more of the event attributes from the Event Variables folder, for example, InputBusObj.String1, and drag-and-drop into the right hand build area.
  4. Select one or more of the condition function blocks from the Expressions Library folder, for example, Greater than or equal, and drag-and-drop into the right hand build area.
  5. Select any special element blocks from the upper right hand corner, that is, a new constant value, palette, description, comment or to do, and drag-and-drop them into the right hand build area.
  6. When you have completed graphically building your condition, select the Create Connections button in the upper right, and create a connection by selecting one item and dragging the cursor to another item.
  7. Continue creating connections to properly build your condition.
  8. Select the Expression tab to see the generated expression for the graphical condition.
  9. Select File > Save to save the condition.
  10. Select File > Close to close the Condition Builder window. The condition is now set and displays in the wizard.

Copyright IBM Corp. 2004, 2005