How to Display and Edit XML Facts How to Reload XML Facts with Updated Schema

Working with Facts and Bucketsets 3-5 Figure 3–3 XML Fact: Create XML Fact Dialog

9. In the Create XML Fact dialog, in the Target Classes area, select the classes you

want to import as XML fact types.

10. Click OK.

3.2.2 How to Display and Edit XML Facts

To work with an XML Fact, in Rules Designer open the Edit XML Fact dialog. To display and edit XML facts: 1. In Rules Designer, select the Facts navigation tab. 2. Select the XML Facts tab on the Facts navigation tab. 3. In the XML Facts table, double-click the icon for the XML Fact you want to edit. This displays the Edit XML Fact dialog, as shown in Figure 3–4 . 3-6 Oracle Fusion Middleware Users Guide for Oracle Business Rules Figure 3–4 Edit XML Fact Dialog The Edit XML Fact dialog includes the fields shown in Table 3–1 .

3.2.3 How to Reload XML Facts with Updated Schema

If an XML schema changes in a project, the schema must be reimported into the Oracle Business Rules dictionary. When you reimport the schema, Oracle Business Rules uses JAXB to recompile all source schemas for every XML fact type and updates the XML Table 3–1 XML Fact: Edit XML Fact Dialog Fields Field Description Name Displays the XML Fact name. You cannot change the name of JAXB generated class. Alias Enter the XML Fact alias. You can change this value. This defaults to the unqualified name of the class. Super Class Displays Java super class associated with this fact. Description Enter the XML Fact description. XML Name Displays the XML name associated with the XML Fact. Generated From Displays the XML schema file that was the source for the XML Fact when it was copied into the business rules data model. Visible Select to show the XML Fact in lists in Rules Designer. XML Facts often reference other XML Facts, forming a tree. You should make all the XML fact types visible that contain properties that you reference in rules. Support XPath Assertion Select to enable XPath assertion for the fact. This feature is provided for backward compatibility only. Typically, this option is not used. Attributes area Select the available constructors, properties, methods, or fields associated with the JAXB class for the XML Fact to display or edit. Working with Facts and Bucketsets 3-7 fact type definitions with the updated XML schema definitions. You should reimport facts if you changed the schema or classes and you want to use the changed schema or classes at runtime. To reimport XML facts: 1. In Rules Designer, select the Facts navigation tab. 2. Select the XML Facts tab on the Facts navigation tab. 3. On the XML Facts page, click the Reload XML Facts from Updated Schemas icon. After the reimport operation you need to correct any validation warnings that may be caused by incompatible changes for example, the updated schema may include a change that removed a property that is referenced by a rule.

3.2.4 What You Need to Know About XML Facts