Working with Decision Components that Expose a Decision Function Using Stateful Interactions with a Decision Component
11.2.1.2 SCA Component Type .componentType File
An SCA business_rule_name.componentType file is included with each Decision component. This file lists the services exposed by the business rules service component. In the following sample, two services are exposed: CreditRatingService and LoanAdvisorService. ?xml version=1.0 encoding=UTF-8 ? -- Generated by Oracle SOA Modeler version 1.0 at [52407 9:27 AM]. -- componentType xmlns=http:xmlns.oracle.comsca1.0 service name=CreditRatingService interface.wsdl interface=http:xmlns.oracle.comcreditratingRatingwsdl.interfaceIDecisionSer vice service service name=LoanAdvisorService interface.wsdl interface=http:xmlns.oracle.comloanofferAdvisorwsdl.interfaceIDecisionServi ce service componentType11.2.1.3 Decision Component Entry in composite.xml
An entry in composite.xml is created for a decision component. For example, component name=OracleRules1 implementation.decision src=OracleRules1.decs component The business rules service engine uses the information from this implementation type to process requests for the Service Engine. From an SCA perspective, a Decision Component is a new implementation type.11.2.2 Working with Decision Components that Expose a Decision Function
You can use a Decision service to expose an Oracle Business Rules Decision Function as a service. A decision function is a function that is configured declaratively, without using RL Language programming that you use to call rules from a Java EE application or from a BPEL process. Example 11–1 shows a business_rule_name.decs file decisionServices element that defines the metadata for an Oracle Business Rules Decision Function exposed as a service. Example 11–1 decisionService for Decision Function Execution ?xml version=1.0 encoding=UTF-8 standalone=yes? decisionServices xmlns=http:xmlns.oracle.combpelrules name=PurchaseItems ruleEngineProvider name=OracleRulesSDK provider=Oracle_11.0.0.0.0 repository type=SCA-Archive pathPurchasingSampleProjectoraclerulescomexamplePurchaseItems.rulespath repository ruleEngineProvider decisionService targetNamespace=http:xmlns.oracle.comPurchaseItemsPurchaseItems_DecisionService_Validate PurchasesDF ruleEngineProviderReference=OracleRulesSDK name=PurchaseItems_DecisionService_ValidatePurchasesDF catalogPurchaseItemscatalog pattern name=CallFunctionStateless arguments callcom.example.PurchaseItems.ValidatePurchasesDFcall arguments Working with Decision Components in SOA Applications 11-5 pattern pattern name=CallFunctionStateful arguments callcom.example.PurchaseItems.ValidatePurchasesDFcall arguments pattern decisionService decisionServices In this case, the decision function ValidatePurchasesDF itself is specified entirely in the PurchaseItems.rules file. For more information, see, Chapter 6, Working with Decision Functions .11.2.3 Using Stateful Interactions with a Decision Component
To provide a stateful Decision service you create a decision function and specify that the decision function is not stateless. To do so you deselect the Stateless checkbox in a decision function. Note the following details about stateful interactions with a decision component also see Figure 11–2 : ■ Rule sessions from the cache and those from the pool are mutually exclusive: – The rule session pool is for simple, stateless interactions only – The rule session cache keeps the state of a rule session across Decision service requests11.2.4 What You Need to Know About Stateful Interactions with Decision Components
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