Skip Headers
Oracle® SOA Suite Developer's Guide
10g (10.1.3.1.0)

Part Number B28764-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

8.4 Creating and Saving a Dictionary with Rule Author

To work with Rule Author to create and modify rules, you must start with a dictionary. Rule Author stores rules and their associated definitions in a dictionary. To work with a dictionary, you can either create a new dictionary, or you can load and modify an existing dictionary.

Before you can create a dictionary, you need to set up a repository in which to store it. Rule Author supports two types of repositories for persistent storage of dictionaries, either a WebDAV (Web Distributed Authoring and Versioning) repository or a file repository. You need to determine the type of repository that you want to use to store your dictionaries. A WebDAV repository can be configured to allow users to write and access dictionaries on a web server.

8.4.1 How to Set Up a File Repository

Oracle Business Rules supplies an empty file repository (which does not contain a dictionary) with the installation. This empty file repository, named emptyFileRepository, is located in the $ORACLE_HOME/rules/lib directory. You have two choices when you need to create a new file repository: you can copy the empty file repository file to create a new repository, or you can use the Rule Author Connect secondary tab to create a new file repository.

To set up a new file repository using emptyFileRepository:

  1. You can use the commands on the host system to copy the file named emptyFileRepository from the $ORACLE_HOME/rules/lib directory to the location where you want to save the file repository.

  2. When you want to use the new file repository, you can connect to the repository from the Rule Author Repository Connect page (see Section 8.4.3).

To create a new file repository using Rule Author:

  1. Access the Rule Author Repository Connect page.

  2. Enter a full path in the File Location field, and then click Create.

After you create a repository and connect to it, you can create and save dictionaries in the repository.

8.4.2 How to Set Up a WebDAV Repository

Oracle Business Rules supports the use of a WebDAV repository in Oracle HTTP Server as the persistent storage for rule sets, the data model, and rules. Oracle HTTP Server supports WebDAV with the mod_oradav module.

The WebDAV protocol is an extension to the HTTP protocol that enables remote users to write content to the web server. If you use a WebDAV repository, you should configure the web server to prevent undesirable consequences and to ensure that a secure system is maintained.

It is strongly recommended that you employ some or all of these security features on the web server:

  • Require authentication for access to WebDAV enabled areas

  • Use of SSL, at least during authentication (for the entire session if Basic Authentication is used)

  • Use of the ForceType directive to prevent execution for URLs that reference content in WebDAV enabled areas

To create a WebDAV repository: provides an example of how to create a WebDAV-based repository where the content is stored in the file system. This example assumes that:

  • All file system paths are relative to the ORACLE_HOME in which the Oracle HTTP Server is installed.

  • The user performing the steps is logged in to the computer as the user who installed Oracle Application Server (this ensures that the Oracle HTTP Server will be able to read from and write to rule_repository directory)

  • Oracle HTTP Server can be accessed with the URL http://www.myserver.com:port.


Note:

Only use this example to configure a WebDAV repository for internal testing and not for a production environment. The repository created in this example does not include access control, and therefore allows anyone to access or modify the WebDAV repository. For information about configuring a WebDAV repository with security, see Oracle Business Rules User's Guide.

To create a WebDAV repository:

  1. In the Apache/Apache/htdocs directory, create a directory named rule_repository.

  2. In the Apache/oradav/conf directory, edit the moddav.conf file and add the following lines:

    <Location /rule_repository>
        DAV on
        ForceType text/plain
    </Location>
    
    
  3. Restart Oracle HTTP Server.

    A WebDAV repository is created, and is accessible at this URL:

    http://www.fully_qualified_host_name.com:port/rule_repository/


Note:

In order for authentication to work, you must use a fully qualified host name in the URL.

For more information about using mod_oradav, see Oracle HTTP Server Administrator's Guide. In particular, see the section titled "WebDAV Security Considerations" in Chapter 9.

8.4.3 How to Create and Connect to a Repository

In Oracle Business Rules, a dictionary stores rules and the data model associated with the rules. To create and save a dictionary with Rule Author, you must first connect to a repository. Rule Author supports two types of repositories: a WebDAV repository and a file repository.


Note:

If you choose to use a WebDAV repository, the repository must exist before you can connect to it.

To connect to a repository:

  1. Click the Repository tab.

  2. Click the Connect secondary tab.

  3. Select the File repository type in the Repository Type field.

  4. In the File Location box, enter the path to the file repository (see Figure 8-3).

  5. Click Connect.

    If you connect successfully, Rule Author shows a confirmation message.


Note:

To create and connect to a file repository, click Create instead of Connect. Rule Author does not accept relative pathnames in the File Location field when you use Create.

Figure 8-3 Rule Author File Repository Connect Page

Rule Author WebDAV Repository Connect Page
Description of "Figure 8-3 Rule Author File Repository Connect Page"

8.4.4 How to Create and Save a Rule Author Dictionary

A Rule Author dictionary is the top-level container and the starting point for working with Rules. A dictionary usually corresponds to the rules portion of an application.

To create and save a dictionary:

  1. Connect to a repository, as shown in Section 8.4.3, "How to Create and Connect to a Repository".

  2. Click the Create secondary tab.

  3. Enter the dictionary name in the New Dictionary Name field. For example, enter OrderBookingRule (see Figure 8-4).

  4. Click Create.

    Rule Author shows a status message.

    Figure 8-4 Rule Author Create Dictionary Page

    Rule Author Create Dictionary Page
    Description of "Figure 8-4 Rule Author Create Dictionary Page"

  5. Click the Save As secondary tab.

  6. In the Dictionary field, enter the dictionary name.

  7. To specify a version, enter a version in the Version field.

  8. Click Save As.

    Rule Author shows a confirmation message (see Figure 8-5).

    Figure 8-5 Rule Author Save As Page

    Rule Author Save As Page
    Description of "Figure 8-5 Rule Author Save As Page"

8.4.5 What Happens When You Save a Dictionary

When you save a dictionary, Rule Author stores the rules and the data model associated with the dictionary in a repository using the specified version name. The save updates the repository.