Click Test. In the Input Arguments area, select XML View. Replace the XML with the Click Test Web Service. In the Response tab, view the results. For example, for this input:
2. Click Test.
3. In the Input Arguments area, select XML View. Replace the XML with the
contents of example Example 5–2 . Example 5–2 Sample Input for Testing Order Approval Application soap:Envelope xmlns:soap=http:schemas.xmlsoap.orgsoapenvelope soap:Body xmlns:ns1=http:xmlns.oracle.comOracleRules1OracleRules1_DecisionService_1 ns1:callFunctionStateless name=OracleRules1_DecisionService_1 ns1:parameterList xmlns:ns3=http:example.comnscustomerorder ns3:CustomerOrder ns3:nameGaryns3:name ns3:creditScore600ns3:creditScore ns3:annualSpending2001.0ns3:annualSpending ns3:valueHighns3:value ns3:order100.0ns3:order ns3:CustomerOrder ns1:parameterList ns1:callFunctionStateless soap:Body soap:Envelope 4. Replace the values in the input shown in Example 5–2 as desired for your test.5. Click Test Web Service.
6. In the Response tab, view the results. For example, for this input:
OracleRules1_DecisionService_1 xmlns:ns2=http:xmlns.oracle.combpel resultList OrderApproval:OrderApproval xmlns:OrderApproval=http:example.comnscustomerorder xmlns=http:example.comnscustomerorder 5-48 Oracle Fusion Middleware Users Guide for Oracle Business Rules statusapprovedstatus OrderApproval:OrderApproval resultList callFunctionStatefulDecision 6 Working with Decision Functions 6-1 6 Working with Decision Functions Use a decision function to call rules from a Java application, from a composite, or from a BPEL process. This chapter includes the following sections: ■ Section 6.1, Introduction to Decision Functions ■ Section 6.2, Working with Decision Functions ■ Section 6.3, What You Need to Know About Decision Functions6.1 Introduction to Decision Functions
A decision function is a function that is configured declaratively. A decision function contains the following declarations: ■ input facts ■ rulesets and nested decision functions ■ output facts A decision function performs the following operations: ■ Asserts inputs as rule facts into the Oracle Business Rules Engine working memory ■ Runs rulesets configured in the current decision function and in nested decision functions in order ■ Returns output facts from the Oracle Business Rules Engine working memory You can create a decision function to simplify the use of Oracle Business Rules from a Java application or from a BPEL process. In a decision function the rules you want to use can be organized into several rulesets, and those rulesets can be executed in a prescribed order. Facts may flow to the first ruleset, and this ruleset may assert additional facts that flow to the second and subsequent rulesets until finally facts flow back to the decision function as decision function output.6.2 Working with Decision Functions
A decision function is a function that is configured declaratively.6.2.1 How to Add or Edit a Decision Function
You use Rules Designer to add a decision function.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