|
|
OverviewOnyx data consists of participant data, workstation data (experimental condition data), and instrument data (calibration data). All three kinds of data can be exported to zip files. Only participant data can be purged (deleted from the Onyx database) Configuring Data ExportThree types of data can be exported:
You configure export of all three types of data by editing the export-destinations.xml file in the WEB-INF/config directory. An entry for each stage associated with a Participant must be added to the export-destinations.xml file if the data from that stage is to be exported. A stage can be a questionnaire or a physical measure such as Standing Height. Data can be exported to multiple destinations. The export-destinations.xml file contains a <destination> element for each destination, and each <destination> element can contain the following:
The example below (taken from the export-destinations.xmlfile for the onyx-demo application) can serve as a starting point for your configuring your export destinations. For information about how to write the script in the <javascript> element, see Magma Javascript API. As you can see in the example, one of the conditions that can be used in a <script> for participant data is the status of the participant interview. Four interview statuses are possible: COMPLETED, CANCELLED, CLOSED, IN_PROGRESS. WEB-INF/config/export-destinations.xml Encrypting Data Upon ExportThe <encrypt> element is optional, but when specified, it can contain some parameters that affect how the encryption occurs. Four parameters can be overridden: algorithm, mode, padding and keySize. Without defining what these mean exactly, here are the possible combinations:
If you use an empty <encrypt/> element (do not specify any parameters), these default values will be used:
To increase the keySizeNote that the maximum keySize can be extended by installing the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files. You can get these files on the Java security page and install the files following their directions. Modifying the Location of the KeystoreThe onyx keystore is required for encrypting participant data upon export. The location of the keystore file can be configured in the onyx-config.properties file.
Modifying the Export DirectoryBy default, the demo configuration writes export files to a directory named target under the "current working directory" (this is usually Tomcat's home directory). You can change this output directory by editing this property in the onyx-config.properties file:
Configuring Purge of Participant DataParticipants and their data can be purged from the Onyx database. This is typically done at some point after the data has been export. Data that is selected for the purge is permanently removed from the Onyx database. The purge function is configured in a file called purge.xml in the WEB-INF/config directory. Default purge configurationBy copying the onyx-demo application, you will have the following default version of the purge.xml file. Notice that certain elements in purge.xml resemble those in export-destinations.xml. Both purge and export involve defining which data to exclude and which data to include in the operation, and javascripts are used to fine-tune what is included (and sometimes what is excluded). WEB-INF/config/purge.xml In the default version of purge.xml:
Modifying the default purge configurationYou can configure purge of participant data as follows:
|
Search Onyx Documentation |
Configuring Data Export and Purge
Labels:
None