Click the Import Schema File icon to import the schema. For example, import

Getting Started with Oracle Business Rules 24-15 By default the Reset Session checkbox is selected which indicates stateless operation. Stateless operation means that, at runtime, the rule session is released after the Decision Component invocation. When Reset Session is unselected, the underlying Oracle Business Rules object is kept in the memory of the business rules service engine at a separate location so that it is not given back to the Rule Session Pool when the operation is finished. A subsequent use of the Decision component re-uses the cached RuleSession object, with all its state information from the callFunctionStateful invocation, and then releases it back to the Rule Session pool after the callFunctionStateless operation is finished. Thus, when Reset Session is unselected the rule session is saved for a subsequent request and a sequence of Decision Service invocations from the same BPEL process should always end with a stateless invocation.

24.5 Adding Business Rules to a SOA Composite Application

To work with Oracle Business Rules in a SOA composite application, you create an application and add business rules. The business rule service component enables you to integrate your SOA composite application with business rules. This creates a business rule dictionary and enables you to execute business rules and make business decisions based on the rules. After creating a project in Oracle JDeveloper, you must create a Business Rule Service component within the project. When you add a business rule you can create input and output variables to provide input to the service component and to obtain results from the service component. To use business rules with Oracle JDeveloper, you do the following: ■ Add a business rules service component ■ Create input and output variables for the service component ■ Create an Oracle Business Rules dictionary

24.5.1 How to Add Business Rules to a SOA Composite Application

To work with Oracle Business Rules in a SOA composite application you use Oracle JDeveloper to create an application, a project, and then add a business rule component. To create a SOA application with business rules: 1. Create a SOA application and project. For more information, see Section 2.1.1, How to Create a SOA Application and Project . For a SOA composite using business rules, pick the required technologies for your application. For example, you may need the following for a SOA application with business rules: ADF Business Components, Java, and XML. You move these items to the Selected area on the Project Technologies tab. 2. In the Application Navigator, if the SOA composite editor is not showing, then in your project expand SOA Content folder and double-click composite.xml to launch the SOA composite editor.

3. From the Component Palette, drag-and-drop a Business Rule from the Service

Components area of the SOA menu to the Components lane of the SOA composite editor, as shown in Figure 24–13 .