Export or import a data model

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 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:

  1. In Oracle Policy Modeling, select View | Data Model. The data model view will open in the right hand pane.
  2. In this view, right-click anywhere and select Export to XML...
  3. 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:

  1. In Oracle Policy Modeling, select File | Import Project.
  2. In the Import Project dialog box, specify the project interchange XML file to import from in the Interchange file field.
  3. In the Project folder field, specify a folder to contain the Oracle Policy Modeling project files. The specified folder should be the Development folder for the imported project, such as "C:\Projects\MyImportedProject\Development". (If the original project contains modules, the imported project should be saved at the same directory level relative to the module as the original project.)
  4. Click Create to create your project.

Your imported project will open in Oracle Policy Modeling.

Import 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 and report on this material in both participating environments.

The steps in this process are given below:

  1. Convert rules, data and metadata in the external repository to the standard Oracle Policy Modeling project interchange format.
  2. 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.
  3. View and report on the project in Oracle Policy Modeling as necessary. Note that you cannot make changes to the external data model or to the project in Oracle Policy Modeling.
  4. Export the project to the standard Oracle Policy Modeling project interchange format.
  5. Upload the content of the file to the external repository.

External rulebase data integrators are responsible for steps 1 and 5.

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:

  1. Select File | Export... in Oracle Policy Modeling. The progress of the export process will be shown in the Output window in Oracle Policy Modeling.
  2. Click Export to export the Oracle Policy Modeling project. NOTE: References to module files are exported, as are the data model elements defined in a module. Rules defined in a module are not exported. For more information on what is re-imported in relation to modules, see Seeded data in imported projects.
  3. 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.
  4. Click the Save button to save and export the file.