Data Adaptors allow Web Determinations interview data to be saved to a datasource, and also to load data into a Web Determinations interview before starting the interview session; more information about Data Adaptors can be found in Data Adaptor plugin.
The default Data Adaptor for Web Determinations allow the user to load and save interview data into an XDS file. When saving the interview data, the user can provide the save name. When loading interview data, a list of the saved interview data for the current rulebase is displayed, listed using the save name.
XDS files are XML files that are used by Oracle Policy Automation technologies to store rulebase model and instance data. The XDS format is a common way for many Oracle Policy Automation applications to export/import rulebase data between each other. It is possible to use the default Data Adaptor to save interview data into an XDS file, and use the XDS file with another Oracle Policy Automation technology that use XDS files as input.
To use the default Data Adaptor make sure no other custom Data Adaptors are available. Custom Data Adaptors take precedence over the default Data Adaptor, so the default Data Adaptor will not be registered in the interview session if another custom Data Adaptor plugin exists and can be registered to the current Web Determinations interview.
There are no extra setup steps required to setup the default Data Adaptor. But it is expected that there are no customizations that affect:
The Save and Load buttons sit at the top right area of the Web Determinations interview screen with the default layout. See the screenshot below:
Note: The Save button is only displayed when the current Web Determinations Interview session has been saved, or was loaded from a saved Case. See screenshot below.
Firstly you need to configure the directory to which the data will be saved. This is done by changing the xds.file.path property in the application.properties file. When doing this, you should note the following:
The user can save the interview at any time during the interview; for example, during a Goal investigation, or at the Summary screen. The user is returned to the correct screen if saving during a Goal investigation, thus his/her investigation progress is not lost when performing a save.
If the current interview session has not been saved:
If the current interview session has been saved, or the session was loaded from a saved Case:
The user can load the interview at any time.
Note: Loading interview data means that the current interview session will be lost. Loading interview data always requires a fresh interview session.
The saved XDS files are available in <web-determinations>/data/<rulebase name>; for example, C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\web-determinations\data\MyRulebase\Case1.xds