Select Tree Mode as Next to ROOT:, click the fact type place holder and select PO from the list as Select insert test. Select the left-hand operand. In the list, select POdestinationitem.availabilityDate. Select Expression Builder icon, as shown in In the
4.8.2 How to Create Simple Tree Mode Rules
Given the XML schema shown in Example 4–1 and the schema instance shown in Example 4–2 , the following procedure creates the PO rule to cancel non 30-day availability items. IF the time between the order date and the date for availability of an item is more than 30 days THEN cancel the item To create simple tree mode rules: 1. Create an IFTHEN rule in your ruleset. For more information, see Section 4.3.1, How to Add Rules . 2. View advanced settings. For more information, see Section 4.5.1, How to Show and Hide Advanced Settings in a Rule or Decision Table .3. Select Tree Mode as
Figure 4–57 shows. Figure 4–57 Simple Tree Mode Advanced Settings4. Next to ROOT:, click the fact type place holder and select PO from the list as
Figure 4–58 shows. Working with Rulesets and Rules 4-47 Figure 4–58 Simple Tree Mode: Configuring the Root5. Select insert test.
The IF statement now reads IF operand == operand.6. Select the left-hand operand.
7. In the list, select POdestinationitem.availabilityDate.
8. Select Expression Builder icon, as shown in
Figure 4–59 . 4-48 Oracle Fusion Middleware Users Guide for Oracle Business Rules Figure 4–59 Adding Simple Tree Mode Expression9. In the Expression Builder dialog, copy and delete the item shown in the
Expression area.10. In the Expression Builder, select the Functions tab.
11. In the navigator, expand Duration and double-click the daysbetween function.
12. Remove the daysbetween argument templates, as shown in
Figure 4–60 . Working with Rulesets and Rules 4-49 Figure 4–60 Using Expression Builder to Add a Simple Tree Mode Rule13. In the daysbetween function, paste the value you previously cut as the second
argument.14. In the Expression Builder dialog, select the Variables tab.
15. For the daysbetween function first argument, use the navigator to expand PO and
expand header, and double-click orderDate. 16. In the Expression Builder dialog, click OK. 17. In the list, in the expression area and press Enter. 18. Select the operator and enter . 19. Select the right-hand operand and enter the value 30 and press Enter, as shown in Figure 4–61 . 4-50 Oracle Fusion Middleware Users Guide for Oracle Business Rules Figure 4–61 Simple Tree Mode: Right-Hand Operand with Value 3020. Click insert action and from the list select modify.
Parts
» Oracle Fusion Middleware Online Documentation Library
» What Are Rule Conditions? What Are Rule Actions?
» What Are Decision Tables? What Are Facts and Bucketsets? What Are Rulesets?
» Oracle Business Rules SDK Rules Designer
» Declarative Rules The RETE Algorithm
» How to Display and Edit XML Facts How to Reload XML Facts with Updated Schema
» What You Need to Know About XML Facts
» How to Display and Edit Java Facts What You Need to Know About Java Facts
» What You Need to Know About List of Values Bucketsets What You Need to Know About Range Bucketsets
» What You Need to Know About Bucketset Allowed in Actions Option
» In the Filter Query field, click insert test to insert a default test as
» How to Add Rules How to Define a Test in a Rule
» What You Need to Know About Advanced Mode Rules
» Introduction to Tree Mode Rules
» What You Need to Know About Tree Mode Rules
» How to Use Bucketsets to Provide Options for Test Expressions
» From the list next to the Add icon, select Rule.
» Introduction to Decision Table Operations
» Introduction to Decision Point API How to Obtain the Car Rental Sample Application
» How to Create Data Model Elements for Use with a Decision Point
» How to Add a Decision Point Using Decision Point Builder
» How to Create and Use Decision Point Instances
» What You Need to Know About Decision Point and Decision Tracing
» Testing Oracle Business Rules at Runtime Introduction to the Grades Sample Application
» Enter a name and test score and click Submit. This returns results as shown in
» Understanding Oracle Business Rules ADF Business Components Fact Types
» Understanding Oracle Business Rules Decision Point Action Type
» How to Call a Decision Point with ADF Business Components Facts
» How to Call a Decision Function with Java Decision Point Interface
» What You Need to Know About Decision Function Configuration with ADF Business Components
» How to Add the Outside Manager Finder Class
» How to Update ADF META INF for Local Dictionary Access
» How to Add the Employee Raises Java Class
» Working with Decision Component Metadata
» Introduction to Decision Components Decision Service Architecture
» Working with Advanced Mode Options
» Expression Builder Condition Browser
» Editing Decision Table Cells
» Understanding the Validation Panel Updating the Validation Panel
Show more