Tuning rule execution
We can control rule ordering execution, which can help improve rule evaluation efficiency or reduce memory.
Getting ready
You'll need access to an SOA composite containing an Oracle Business Rules component in JDeveloper to apply this recipe. For simplicity, we'll presume that the component is empty for this recipe.
How to do it...
To add some rules and tune their configuration, perform the following steps:
Open the rules component for editing.
Next to the Rulesets title on the left, click on the green plus icon (+) to add a new ruleset. Name it
Ruleset2
. This will be the second ruleset in the stack.In
Ruleset2
, add two rules by clicking on the green plus (+) icon, as shown in the following screenshot. You can leave the rule logic blank for this recipe.Click on the blue double down arrow icon to show the advanced settings for each rule. In
Rule2
, set the Priority in the selection box by typing in an integer value of1001
, as shown in the following screenshot:In
Rule1
,set...