What You Need to Know About Tree Mode Rules

Working with Rulesets and Rules 4-53 Figure 4–64 Advanced Tree Mode Rule for Free Shipping

4. Select the fact type place holder and from the list, select PO.

5. Complete the free shipping rule, as shown in

Figure 4–65 . Figure 4–65 Advanced Tree Mode Free Shipping Rule

4.8.4 What You Need to Know About Tree Mode Rules

When you select Tree Mode and select a root fact type, the options lists show all available fact types not just the children of the root fact type. This allows you to view all available fact types as well as the children of the root fact type. There is no option to limit the option list to only show the children of the selected root fact type. 4-54 Oracle Fusion Middleware Users Guide for Oracle Business Rules

4.9 Using Date Facts, Date Functions, and Specifying Effective Dates

Oracle Business Rules provides functions that make it easier for you to work with times and dates, and provides effective date features to let you determine when rules are effective, based on times and dates: ■ The CurrentDate fact allows you to reason on a fact representing the current date. ■ The Effective Date value lets you specify a start date and end date that defines a date or date and time range when all the rules and Decision Tables in a ruleset, an individual rule, or an individual Decision Table are effective. Table 4–8 describes the available Effective Date options. An effective date specification other than Always can be one of the following: ■ Date only, with no time specification: In this case, an effective date assumes a time of midnight of that date in each time zone. ■ Date, time zone, with no time specification: In this case, an effective date assumes a time of midnight as of the specified date in the specified time zone. ■ Date, time zone, time specification: In this case, the date and time is fully specified. ■ Time specification only, with no date and no time zone: applies for all days at the specified time. ■ Time and time zone specified, with no date: applies for all days at the specified time.

4.9.1 How to Use the Current Date Fact

You can use the current date fact in a rule or a Decision Table. To use the CurrentDate fact: 1. Select a ruleset from the Rulesets navigation tab. 2. Select a rule within the ruleset.

3. In the IF area, add a condition that uses the CurrentDate fact and the date method

of Calendar type, as shown in Figure 4–66 . Table 4–8 Effective Date Possible Values Effective Date Description Always Valid Specifies to set neither From nor To dates. From without To date set Valid from a certain date indefinitely into the future. To without a From date set Valid from now until a certain date. From Set and To set Valid only between two dates.