How Business Rules Work

Write a business rule that uses conditional logic to process a business event.

A business rule uses the sales order as input, uses functions to get details or to do an action on a fact, then provides a result that Order Management uses to update sales order details.

how A business rule uses the sales order as input

Assume you must implement a rule.

  • If the item is a Green Server, then use priority shipping.

Here's the flow.

flow of an example rule

Note

  1. An event happens that causes Order Management to run the rule. The event depends on the context where you write the rule. For example, if you set up a rule.

    • On a step in an orchestration process. The rule runs when the process reaches the step.

    • On a routing rule. The rule runs when a task references the rule.

  2. If the If statement is true according to the facts, then Order Management activates the rule.

    For example:

    • If the item is a Green Server

      where

      • Item is a fact.

      • Green Server is a fact.

  3. The rule references the dictionary to get the objects it needs at run time.

    For example, you create variables and declare objects when you set up the rule. You store these objects in the dictionary.

  4. The rule does the action.

    The action is a Then statement. For example:

    • Use priority shipping.

      where

      • priority shipping is a fact

For background details about business rules, see User's Guide for Oracle Business Rules.