Use the Default Data Adaptor

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

Setup

There are no extra setup steps needed 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 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.



Using the default Data Adaptor

Saving the Web Determinations Interview

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:

  1. Click the Save As button (top-right area for default Web Determinations layout)
  2. The Save As screen is displayed. The user provides a Case ID as the save name; the Case ID must be unique against all other Case IDs for the current rulebase
  3. The user clicks OK to confirm the Case ID provided, and to save the data to a Case
  4. A save successful screen is displayed if the screen succeeds. Data of the current interview is now saved into a Case
  5. The save successful screen will also have a link that resumes the interview and a Continue button. The link and the Continue button returns the user to the same screen where he/she initiated the interview save action; for example, if the user was in between the investigation of a Goal, the user will be returned to the correct screen so that progress is not lost.

 

If the current interview session has been saved, or the session was loaded from a saved Case:

  1. Click the Save button (top-right area for default Web Determinations layout)
  2. A save successful screen is displayed if the screen succeeds. Data of the current interview is now saved into a Case
  3. The save successful screen will also have a link that resumes the interview and a Continue button. The link and the Continue button returns the user to the same screen where he/she initiated the interview save action; for example, if the user was in between the investigation of a Goal, the user will be returned to the correct screen so that progress is not lost.

Loading data into a new Web Determinations Interview

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.

  1. Click the Load button (top-right area for default Web Determinations layout)
  2. The Load screen is displayed. It has a list of saved interview data listed using the Case ID. Each Case ID is a link; only saved Cases for the current rulebase are listed
  3. The user clicks on one of the Case IDs to load it
  4. The Case ID is loaded, and the user is taken to the Summary Screen of the current rulebase.

Accessing the saved XDS files

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