In the Application Properties navigator select the Deployment item, as shown in Configure this dialog as follows, as shown in Click OK. Expand the Metadata File Groups item and select the User Metadata item. In the Add Contributor dialog, click the Browse

9-26 Oracle Fusion Middleware Users Guide for Oracle Business Rules Figure 9–25 Adding Oracle Rules Library Reference to WebLogic Descriptor

4. Save the weblogic-application.xml file.

9.6.3 How to Add the MDS Deployment File to the Grades Sample Application

To add the MDS deployment file: 1. In the Application Navigator, select the GradeApp application. 2. Right-click the GradeApp application and in the context menu select Application Properties... . This displays the Application Properties dialog.

3. In the Application Properties navigator select the Deployment item, as shown in

Figure 9–26 . Creating a Rule-enabled Non-SOA Java EE Application 9-27 Figure 9–26 Application Properties - Deployment 4. In the Application Properties dialog, click New.... This displays the Create Deployment Profile dialog.

5. Configure this dialog as follows, as shown in

Figure 9–27 : ■ Archive Type : MAR File ■ Name : metadata1 Figure 9–27 Create Deployment Profile Dialog for MAR File

6. Click OK.

This displays the Edit MAR Deployment Properties dialog as shown in Figure 9–28 . 9-28 Oracle Fusion Middleware Users Guide for Oracle Business Rules Figure 9–28 Edit MAR Deployment Profile Properties - MAR Options

7. Expand the Metadata File Groups item and select the User Metadata item.

8. Click Add.... This displays the Add Contributor dialog.

9. In the Add Contributor dialog, click the Browse button and navigate to the

directory for the project that contains the GradingRules.rules dictionary file. In this example, navigate to C:\JDeveloper\mywork\GradeApp\Grades and click Select. 10. In the Add Contributor dialog, click OK to close the dialog. This displays the Edit MAR Deployment Properties dialog as shown in Figure 9–29 Creating a Rule-enabled Non-SOA Java EE Application 9-29 Figure 9–29 Edit MAR Deployment Profile Properties - User Metadata

11. In the Edit MAR Deployment Profile Properties dialog, expand the Metadata File

Groups and expand the User Metadata item and select Directories. This displays the Directories page as shown in Figure 9–30 . Figure 9–30 Edit MAR Deployment Profile Properties - Directories

12. Select the oracle directory checkbox. This selects the GradingRules.rules

dictionary to be included in the MAR.

13. Click OK.