MigrationObject

The MigrationObject is a help structure with which to write data consistently in schema tables for ARIS Risk & Compliance Manager. Generate and write the objects sequentially in order to prevent conflicts with the internal ID management. This help structure does not generate the tables, but rather fills in the data semantically correct.

It is possible to generate a MigrationObject with the operator new.

MigrationObject migObject = new MigrationObject("POLICYREVIEWTASK", mapping, this, UUID.randomUUID().toString(), OVIDFactory.getOVID(SystemGUID.INTERNAL_SYSTEM_USER.getObjID()));

The newly generated object provides an API that can be used to maintain attributes with their values.

migObject.setAttribute("reviewRelevant", IMapping.TYPE_NUMBER, "0");

Relations can also be maintained like this:

migObject.setRelationAttribute("POLICYREVIEWTASK", "owner_group", IMapping.TYPE_RELATION_1_1, ownerGroupID, 5520, 0, null);

With the ::write() function the object can be written in the database.

migObject.write();

In order to receive a complete overview of the API from this class, check the javadoc of the file MigrationObject.java.