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 Process Monitor.
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 in the Process Monitor.
Only a selected number of events support scheduled rules.
Creating a Scheduled Rule
To create a scheduled rule:
-
On the Business Rules Framework landing page, select the Scheduled Rules tile.
-
On the Scheduled Rules page, select the event for which you want to create a scheduled rule.
-
On the Event Details page, click Add on the Business Rules grid.
-
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.
-
Enter the criteria for your rule.
For more information on defining rule criteria, see Setting Up Business Rule Criteria.
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.
-
Click Save.
-
Click the Process Monitor link at the top of the page to set up a schedule to process the rule.
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.
To define a schedule for processing a scheduled business rule:
-
Access the Process Monitor page using one of the following methods:
-
Click the Process Monitor link on the Event Details page after you have setup criteria and configured the scheduled rule action.
-
When starting at Home with Ask Oracle, select Permitting and Licensing Process Monitor to open the Process Monitor page.
-
-
Click the Schedule New Process.
-
On the Schedule new process drawer, select Schedule Rules from the drop-down list and click Add.
-
On the Parameters tab on the Schedule Rules page, select one or more scheduled rules you want to run from the Select Rules drop-down list.
Note:You can run multiple scheduled rules using the same schedule.
-
Select the Schedule tab, and specify when you want the rule to run.
-
As soon as possible
If you want to run the rule now, not according to a schedule, select As soon as possible.
-
Using a schedule
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.
-
-
Select the Notifications tab to set up additional notifications related to the process.
You can add notification recipients and indicate the conditions for sending the notification, such as upon success, warning, and error.
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 Permitting and Licensing Process Monitor:
-
Click the Process Monitor link on the Event Details page of your scheduled rule in the Business Rules Framework.
-
When starting at Home with Ask Oracle, select Permitting and Licensing Process Monitor to open the Process Monitor page.
You can filter the processes by Name (Schedule Rules), Scheduled Time, Submission Time, as well as search by Process ID to locate your scheduled job.
Click the View Details action for the process ID row to view runtime and submission notes, logs, or output files (if any).
For more information, see Using the Process Monitor.