4-4 Oracle Fusion Middleware Users Guide for Oracle Business Rules
Figure 4–4 Showing a Filter Query in a Ruleset
3. In the Filter Query field, click insert test to insert a default test as
Figure 4–5 shows.
Figure 4–5 Inserting a Default Filter Query Test
4.
Configure the default test. In this case, as shown in
Figure 4–6 , when you click an operand you can choose
from the rule-specific options shown in Table 4–1
.
Table 4–1 Rule Filter Query Operands
Operand Description
name Matches against the rule name.
description Matches against the rule description.
priority Matches against the rule priority. For more information, see
Section 4.5.5, How to Set a Priority for a Rule .
start date Matches against the rule start date. For more information, see
Section 4.9.2, How to Set the Effective Date for a Rule .
Working with Rulesets and Rules 4-5
Figure 4–6 Filter Query Operands
For more information, see Section 4.3.2, How to Define a Test in a Rule
.
end date Matches against the rule end date. For more information, see
Section 4.9.2, How to Set the Effective Date for a Rule .
minutes until start date Matches against a specified number of minutes until the rule start date.
For more information, see Section 4.9.2, How to Set the Effective Date
for a Rule .
minutes until end date Matches against a specified number of minutes until the rule end date.
For more information, see Section 4.9.2, How to Set the Effective Date
for a Rule .
days until start date Matches against a specified number of days until the rule start date.
For more information, see Section 4.9.2, How to Set the Effective Date
for a Rule days until end date
Matches against a specified number of days until the rule end date. For more information, see
Section 4.9.2, How to Set the Effective Date for a Rule
years until start date Matches against a specified number of years until the rule start date.
For more information, see Section 4.9.2, How to Set the Effective Date
for a Rule years until end date
Matches against a specified number of years until the rule end date. For more information, see
Section 4.9.2, How to Set the Effective Date for a Rule
is active Matches against whether the rule is active. For more information, see
Section 4.5.3, How to Select the Active Option .
is valid Matches against whether the rule has validation warnings. For more
information, see Section 4.4.2, Understanding Rule Validation
. referenced fact types
Matches against one or more fact types.
Table 4–1 Cont. Rule Filter Query Operands
Operand Description
4-6 Oracle Fusion Middleware Users Guide for Oracle Business Rules
5.
Select the operator to choose an operator for the comparison. For example, for the name you can select startsWith from the operand list.
6.
Enter a comparison operand for the right-hand-side of the filter test. For example, enter the string Customer.
7.
When the filter query is complete you can apply the filter to the rules in the ruleset:
a. To apply the filter, select the Filter On checkbox.
Rules Designer displays only the rules that match the filter query as Figure 4–7
shows.
Figure 4–7 Enable Filter Query in a Ruleset with Filter On Option
b. To disable the filter query, deselect the Filter On checkbox.
Rules Designer displays all the rules in the ruleset.
c. To delete the filter query, select it and press Delete or click the Clear Filter
icon.
4.3 Working with Rules
You create business rules to process facts and to obtain intermediate conclusions that Oracle Business Rules can process. You create rules in a ruleset, so before working
with rules you need to create a ruleset or use the default ruleset. For more information on creating a ruleset, see
Section 4.2, Working with Rulesets .
You can easily test your rules as you are designing them without having to deploy your application. For more information, see
Section 8.1.1, How to Test Rules Using a Test Function in Rules Designer
. Rules Designer rule validation can assist you when you work with rules. To show the
validation log window, click the Validate icon or select ViewLog and select the Business Rule Validation
tab. This displays warnings for incorrect or incomplete rules. Note that you must correct all warnings before you can test or deploy rules. For