5.24 Facts Tab

Use to show the XML Facts table, Java Facts table, RL Facts table, and the ADF-BC Facts table. In Rules Designer you make business objects known to Oracle Business Rules using fact definitions in the data model.

For each table, click Create... to create a fact, or select an item in the table and then click Edit... to edit a fact, Delete to delete a fact, or Refresh to refresh the table. When the XML Facts table is shown, the Facts tab includes the Reload XML Facts from Updated Schemas icon; click this icon to reload the XML facts when the schemas are updated.

XML Facts Table

The XML Facts table shows the fields for each XML fact. Elements and types defined in XML Schema can be imported into the data model and can then be used to create rules and decision tables, just as with as with Java Fact Types and RL Fact types. The mapping between the XML Schema definition and the XML Fact types uses the Java Architecture for XML Binding (JAXB).

Element Description

Alias

Displays the business rules data model alias for the XML fact.

Name

Displays the name of the XML element or XML complexType

Visible

Select to show the XML Fact in lists in Rules Designer.

XML Name

Displays the XML name for the XML fact

Generated Form

Displays the class that the XML fact was generated from when it was copied into the business rules data model.

Description

Enter or display the XML element or complexType description

Java Facts Table

The Java Facts table shows the fields for the Java facts available in the business model. A Java fact type allows selected properties and methods of a Java class to be imported to the Rules Engine so that rules can access, create, modify, and delete instances of the Java class. Importing a Java fact type allows the Rules Engine to access and use public attributes, public methods, and bean properties defined in a Java class (bean properties are preferable because they can be modified using the modify action).

Element Description

Alias

Displays the alias for the property or method.

Class

Displays the class that the property or method is a part of.

Description

Enter or display the Java class description.

RL Facts Table

The RL Facts table shows the fields for each RL Fact. RL Facts are the only kind of facts that you can create directly and do not have an external source. All other types of Oracle Business Rules facts are imported. An RL Fact is similar to a relational database row or a JavaBean without methods. An RL Fact contains a list of properties of types available in the data model, either RL Fact, Java Fact, or primitive types. You can use RL Fact to extend a Java application object model by providing virtual dynamic types.

Element Description

Name

Displays the name of the RL fact.

Description

Displays or provides a field to enter the RL fact description.

Super Class

Displays superclass for the RL fact.

ADF-BC Facts table

ADF Business Components Facts allow you to use ADF Business Components as Facts in rules and in decision tables. By using ADF Business Components Facts, you can assert view object graphs representing the business objects upon which rules should be based, and let Oracle Business Rules deal with the complexities of managing the relationships between the various related view objects in the view object graph. When an ADF Business Components view object is imported an ADF Business Components Fact Type is created which has a property corresponding to each attribute of the view object.

Element Description

Alias

Displays the business rules data model alias for the ADF Business Components.

View Definitions

Displays the name of the RL fact. ADF Business Components Fact Types are instances of RL Fact Types.

Related Topics

Introduction to Working with Facts and Value Sets in Designing Business Rules with Oracle Business Process Management.