Open topic with navigation
Export or import a data model
Using XML files you can import and export data models to and from Oracle Policy Modeling.
What do you want to do?
Export the data model to XML
Import an existing project using XML
Import, update and export a project to and from an external rules repository
Export the data model to XML
You can export the data model to integrate with your deployment environment. For example, to show what attributes and entities you have in the rulebase so those entities and attributes can be mapped to the data model of whatever is sending/receiving data to/from the rulebase at runtime.
To export the data model to XML:
- In Oracle Policy Modeling, select View | Data Model. The data model view will open in the right hand pane.
- In this view, right-click anywhere and select Export to XML...
- In the Save As dialog box specify a location to save the data model to. This process will save the data model in the XML format recognized by Oracle Policy Modeling.
Import an existing project using XML
A new project can be created in Oracle Policy Modeling by importing an existing project interchange file. To import an existing project in this way:
- In Oracle Policy Modeling, select File | Import Project.
- In the Import Project dialog box, specify the project interchange XML file to import from in the Interchange file field.
- In the Project folder field, specify a folder to contain the Oracle Policy Modeling project files.
- Click Create
to create your project.
Your imported project will open in Oracle Policy Modeling.
Import, update and export a project to and from an external rules repository
Oracle Policy Modeling supports the import and export of business rules and associated data and metadata using an intermediate XML file format. The integrity of the content is preserved as it is moved from the external rules repository into Oracle Policy Modeling and back out again. You can view, report on and in some cases edit this material in both participating environments. When changes have been made you can also synchronize your project data model with the externally defined data model.
The steps in this process are given below:
- Convert rules, data and metadata in the external repository to the standard Oracle Policy Modeling project interchange format.
- Import the project into Oracle Policy Modeling. The project will be seeded with the various project folders and documents based on the data in the project interchange file. For more information, see Seeded data in imported projects.
- Update Oracle Policy Modeling with any changes made to the external data model or make the necessary changes to the project in Oracle Policy Modeling.
- Export the project to the standard Oracle Policy Modeling project interchange format.
- Upload the content of the file to the external repository.
External rulebase data integrators are responsible for steps 1 and 5.
Update the project data model with changes to a shared external model
You can update your Oracle Policy Modeling project data model with changes to a shared external model. This capability relies on items in the external model being tagged with synchronization identifiers. (A synchronization identifier is a text property added to Oracle Policy Modeling entities, attributes, relationships, rules and rulesets (folders) so that instances of these objects can be matched with instances of them in external applications. Synchronization identifiers are defined in the project interchange XML schema. More information on the project interchange schema is available in the Oracle Policy Automation Developer Help.)
To update your project:
- In Oracle Policy Modeling, select File | Update.
- In the Import Project dialog box, browse to and select the project interchange file containing the changes to the external data model. Click Open.
- If changes have been made to the shared external project interchange file, the Update Data Model dialog will be shown.

(If you want to review the changes that have been made to the external data model, click on the View Project Update Report link. This will generate a Synchronization Report which identifies new, changed or deleted content. NOTE: The report compares entities, attributes and relationships in the project build model with elements in the <model> section of project interchange files. Data in other sections of the interchange file will be ignored, ie in the <rules> and <project> sections.)
Click Update to update the Oracle Policy Modeling project. This will take all the changes made to the external data model and apply them to the current model in Oracle Policy Modeling.
If no changes have been made to the shared external project interchange file you will be advised that no changes are required.
Export a project to an external rules repository
The contents of an Oracle Policy Modeling project can be exported to an external rules repository using a project interchange file.
To export a project:
- Select File | Export... in Oracle Policy Modeling. The progress of the export process will be shown in the Output window in Oracle Policy Modeling.
If changes have been made in Oracle Policy Modeling since it was last updated with the external interchange file, the Export Project dialog box below will be shown.

(If you want to review the changes that have been made in Oracle Policy Modeling, click on the View Project Export Report link. This will generate a Synchronization Report. This report compares the current state of an Oracle Policy Modeling project's data model with the baseline data model to identify new, changed or deleted entities, attributes and relationships in the Oracle Policy Modeling project. NOTE: The report compares entities, attributes and relationships in the project build model with elements in the <model> section of project interchange files. Data in other sections of the interchange file will be ignored, ie in the <rules> and <project> sections.)
Click Export to export the Oracle Policy Modeling project.
NOTE: This will take all the changes made in Oracle Policy Modeling and apply them to the generated project interchange file.
- In the Export Project dialog box, browse to the folder or drive where you want to save the file and type a name for the project interchange file. By default this will be the name of the project.
- Click the Save button to save and export the file.