Setting Up Scheduled Rules

This topic describes how to configure business rules for selected business objects to be activated on a scheduled or recurring basis though the Oracle Enterprise Scheduler Service (ESS).

Scheduled Rules enable you to apply business rules:

  • At specified times.

  • On a recurring basis.

When creating a scheduled rule you select the event, define the criteria, and select the action the rule will trigger, just like you do with application-triggered rules. With scheduled rules you have the additional step of defining the schedule by which the rule will run. Scheduling and running a scheduled rule is handled by Oracle Enterprise Scheduler Service (ESS).

Note: Only a selected number of events support scheduled rules.

Creating a Scheduled Rule

To create a scheduled rule:

  1. On the Business Rules Framework landing page, select the Scheduled Rules tile.

  2. On the Scheduled Rules page, select the event for which you want to create a scheduled rule.

  3. On the Event Details page, click Add on the Business Rules grid.

  4. At the top of the Business Rule Details page, enter the required information.

    Page Control

    Description

    Resource

    Displays the resource (business object) that contains the attributes you intend to evaluate and compare in your criteria.

    Event

    Displayed the selected event name.

    Rule Name

    Enter the name for your rule.

    Rule Description

    Enter a description to help other implementation team members understand the purpose of the rule.

    Enabled

    Turn on to enable the rule. Turn off to disable it. Rules that are disabled don't run.

  5. Enter the criteria for your rule.

    For more information on defining rule criteria, see Setting Up Business Rule Criteria.

  6. Select the action for your rule.

    Depending on the event and resource, the selection of actions varies. The list displays the actions applicable and supported for the selected event and resource.

  7. Click Save.

  8. Click the Schedule Rules link at the top of the page to set up a schedule to run the rule through ESS.

    See the following section for more information.

Defining a Schedule for the Scheduled Rule

You can schedule the rule to run:

  • As soon as possible.

  • At one specific date and time.

  • As a recurring schedule at regular intervals.

Note: You schedule rules to run through Enterprise Scheduler Service using the standard scheduling page. For details on this interface, refer to the Oracle Enterprise Scheduler Service documentation.

To define a schedule for a scheduled business rule:

  1. Access the Schedule Rules page using one of the following methods:

    • Click the Schedule Rules link on the Business Rule Details page after you have setup criteria and configured the scheduled rule action.

    • Select Navigator > Common > Schedule Rules.

  2. On the Schedule Rules page select the scheduled rule(s) you want to run from the Select Rules multi-select list.

    Note: You can run multiple scheduled rules using the same schedule.
  3. Select the Schedule tab, and specify when you want the rule to run.

    If you want to run the rule now, not according to a schedule, select As soon as possible and click Submit.

    To set up a schedule, select Using a schedule, and define the schedule as desired. Use the Frequency drop-down list to determine the interval at which the rule will run, such as hourly, daily, weekly and so on. Use the Start Date field to set the date when the schedule becomes active.

  4. To set up additional notifications related to the process, select the Notification tab and provide the necessary details.

  5. Click Submit.

Working with Process Monitor

Use the Process Monitor to determine the status of the scheduled rule process run and to troubleshoot if needed.

To access the Process Monitor:

  • Click the Process Monitor link in the Scheduled Rule Details page.

  • Select Navigator > Common > Process Monitor.

Use the rule name and the process ID to locate your scheduled job.

Click View More Details to view runtime and submission notes, logs, or output files (if any).