A rule class is a repository for one or more rules that share a common event structure. A rule class may also share similar rule action preferences or values associated with each rule for appropriate action execution. A rule is an expression defined using the attributes of an event structure.
Use this page to enter the details of a rule class. The rule class will be created in the database. Also, a Java Class file will be added to the package specified in the current project, which will serve as a Java interface to the rule class.
Database Schema NameThis is the database schema in which the rule class will be created. This information is derived from the connection specified in the previous step, and is not editable.Rule Class Name
Enter the name of the rule class. The name must be unique.Event Structure Name
Select the event structure to which this rule class is to be mapped. Only event structures that were created using the JDeveloper Event Structure Wizard will be listed.Action Callback Procedure Name
Enter the name of the action callback procedure that this rule class is going to create. This must be different than the rule class name.Package Name
Enter the name of a package where you would like to add the java class generated for this rule class. You can select the package name from the drop-down list or enter one directly into the field. If the package name specified does not exist, it will be created.Java Class for the Rule Class
Enter a name for the java class that will be created for the rule class. This name need not be the same as the rule class name, though you may find it useful to give them the same name.Action Categories
On this page, you can enter the rule action category names and select other information that you want to define as the action preferences for each matching rule in this rule class. Enter the following:Rule Class Description
- Action Category Name - Enter a name for the action category.
- Data Type - Choose a SQL Type for the attribute, either VARCHAR2 or NUMBER.
- Length - Enter a length for the chosen SQL Type. This only applies to the VARCHAR2 datatype.
Enter a description for this rule class. It will be stored in the database schema along with the rule class.Rule Class Properties
To set advanced properties for rules in this class such as rule duration and rule consumption, press the Rule Class Properties button.Simple/Composite Rule Class
A simple rule class is mapped to a primitive event structure, while a composite rule class is mapped to a composite event structure consisting of two or more primitive event structures.
Related Topics
Rule Class Wizard - Simple Rule Class Property Editor
Rule Class Wizard - Composite Rule Class Property Editor
Copyright © 2005, Oracle. All rights reserved.