What You May Need to Know About the Supported Tags of the Rules Editor Component

25-24 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite

25.3 Using the Oracle Business Rules Dictionary Editor Declarative Component

This section discusses the Oracle Business Rules Dictionary Editor declarative component. It also provides information on how to create and run an application using the Rules Dictionary Editor component, and then deploy the application. In addition, this section lists the supported tags and the localization process for the application.

25.3.1 Introduction to the Oracle Business Rules Dictionary Component

The Oracle Business Rules Dictionary Editor is a composite declarative component that can be embedded in any ADF-based Web application. It enables you to edit business rules metadata artifacts, such as Globals, Bucketsets, and Rulesets, by using the Rules SDK2 API. The Rules Dictionary Editor Task Flow uses the Rules Dictionary Editor Component to create applications. Typically, you should either use the Rules Dictionary Editor component or the Rules Dictionary Editor task flow, but not both. For more information on Rules Dictionary Editor Task Flow, see Section 25.4, Using the Oracle Business Rules Dictionary Task Flow. The Rules Dictionary Editor component performs the following: ■ Edits Globals or Variables that have the final attribute set to true by using the Globals Editor, as shown in Figure 25–29 . viewOnly java.lang. Boolean no true yes If true, in the viewOnly mode, you can view the existing rules in the ruleset. If false, which is the edit mode, you can add new rules and edit existing rules. Note: You should not confuse Rules Dictionary Editor with Rules Editor. Rules Editor is used to edit rules inside a specified ruleset. In fact, Rules Editor is embedded within Rules Dictionary Editor. For more information about Rules Editor, see Section 25.2, Using the Oracle Business Rules Editor Declarative Component. Table 25–2 Cont. Supported Attributes of the Rules Editor Component Name Type Required Default Value Supports EL? Description Using Declarative Components and Task Flows 25-25 Figure 25–29 Globals Editor Globals Editor enables you to edit only the Name, Description, and Value of Globals. It does not allow creation or deletion of Globals. However, it supports validation of Globals. ■ Edits Bucketsets by using the Bucketset Editor as shown in Figure 25–30 . Figure 25–30 Bucketset Editor Bucketset Editor enables you to perform CRUD create, read, update, and delete operations on Bucketsets and buckets inside a Bucketset. It also supports validation of Bucketsets. ■ Edits Rulesets, as shown in Figure 25–31 . 25-26 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite Figure 25–31 Edits Rulesets Rules Dictionary Editor enables you to edit only rules inside a selected ruleset. It does not allow creation or deletion of rulesets.

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

This section lists the steps for creating and running a sample application by using the Rules Dictionary Editor component. The prerequisite for using the Rules Dictionary Editor component to create ADF-based Web applications is having a running installation of SOA Suite and Oracle JDeveloper on your computer. To create a sample application by using the Rules Dictionary 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,

useRuleDictDCApp, and click Next as shown in Figure 25–32 . Using Declarative Components and Task Flows 25-27 Figure 25–32 Creating a Generic Application

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

selected in the Project Technologies tab as shown in Figure 25–33 . Click Finish to create the project. Figure 25–33 Creating a Project

5. Right-click the useRuleDictDC project in the Application Navigator of Oracle

JDeveloper, and select Project Properties to display the Project Properties dialog box. In the Project Properties dialog box:

a. Click JSP Tag Libraries from the left panel.

b. Click Add and select ADF Faces Components from the extension list in the

Choose Tag Libraries dialog box, and then click OK as shown in Figure 25–34 . 25-28 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite Figure 25–34 Choosing Tab Libraries

c. Click Libraries and Classpath from the left panel and click the Add Library

button to display the Add Library dialog box.

d. Click Oracle Rules and Oracle Rules Dictionary Component from the

Extension list and then click OK as shown in Figure 25–35 . Figure 25–35 Selecting Oracle Rules and Rules Dictionary Component This adds the Rules SDK and the Rules Dictionary Editor tag libraries to the project.