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:

  1. Open Oracle JDeveloper.

  2. From the File menu, select New.

  3. Select ADF Fusion Web Application to create a new application as shown in Figure 26-7.

    Figure 26-7 Creating Fusion Web Application

    Description of Figure 26-7 follows
    Description of "Figure 26-7 Creating Fusion Web Application"
  4. Enter a name for the application in the Application Name field, for example, useRulesDCApp, and click Next as shown in Figure 26-8.

    Figure 26-8 Creating a Generic Application

    Description of Figure 26-8 follows
    Description of "Figure 26-8 Creating a Generic Application"
  5. Use the default for everything else.

  6. Click Finish.

  7. Right click ViewController project and select Project Properties.

  8. Select Libraries and Classpath from the menu on the left.

    1. Click the Add Library button.

    2. Select Oracle Rules and Oracle Rules Dictionary Component from the Extension List and click OK. This adds the Rules SDK and the Rules ADF component tag libraries to the project as shown in Figure 26-9.

    3. Click OK once more to come out of Project Properties.

    Note:

    If the 'Oracle Rules' and 'Oracle Rules Dictionary Component' do not show up in the 'Extension' List, open a SOA/BPM project within jDeveloper to load the required libraries.

  9. Click Save All to save the project.

  10. Check to make sure all the required tag libraries are added.

    1. Right click ViewController project and select Project Properties.

    2. Select JSP Tag Libraries from the menu on the left and check if all the tag libraries are added Figure 26-10.

    Figure 26-10 Checking the Required Tag Libraries

    Description of Figure 26-10 follows
    Description of "Figure 26-10 Checking the Required Tag Libraries"