Using Business Rules with Oracle ADF Business Components Fact Types Introduction to Declarative Components and Task Flows

Using Declarative Components and Task Flows 25-3 Figure 25–2 Simple Tests or Conditions in a Rule – Actions in a rule, as shown in Figure 25–3 . Figure 25–3 Actions in a Rule – Decision tables, as shown in Figure 25–4 . Figure 25–4 Decision Tables ■ Sets effective dates and priorities for rulesets and rules. ■ Provides support for user-defined operators. ■ Provides a Condition Browser pop-up to display the left or right value options, as shown in Figure 25–5 . 25-4 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite Figure 25–5 Condition Browser ■ Provides a Date Browser for selecting date types, as shown in Figure 25–6 . Figure 25–6 Date Browser ■ Provides a Right Operand browser to handle multiple right-hand side expressions, as shown in Figure 25–7 . Figure 25–7 Right Operand Browser ■ Provides support for nested rules, as shown in Figure 25–8 . Figure 25–8 Nested Rules Support ■ Provides the Properties browser for editing properties of a rule action, as shown in Figure 25–9 . Using Declarative Components and Task Flows 25-5 Figure 25–9 Properties Browser ■ Provides an Expression Builder window to build custom expressions, as shown in Figure 25–10 . Figure 25–10 Expression Builder Window ■ Provides Advanced Mode features for working with patterns and advanced actions, as shown in Figure 25–11 . Figure 25–11 Advanced Mode Features ■ Provides a Validation panel to manage error messages, as shown in Figure 25–12 . 25-6 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite Figure 25–12 Validation Panel to Manage Error Messages

25.2.2 How to Create and Run a Sample Application by Using the Rules Editor Component

This section lists the steps for creating and running a sample application by using the Rules Editor component. The prerequisite for using the Rules Editor component to create ADF-based Web applications is having a running installation of Oracle SOA Suite and Oracle JDeveloper on your computer. To create a sample application by using the Rules Editor: The first task is to create a sample application. The steps are: 1. Open Oracle JDeveloper.

2. From the File menu, select New and then Generic Application to create an

application.

3. Enter a name for the application in the Application Name field, for example,

useRulesDCApp, and click Next as shown in Figure 25–13 . Figure 25–13 Creating a Generic Application

4. Enter useRulesDC in the Project Name field and ensure that ADF Faces is

selected in the Project Technologies tab as shown in Figure 25–14 . Note: Once all the edits are done, the component user is responsible for saving the ruleset.