When re-importing the instance data using system event format, identical objects are automatically overwritten. Identical objects are identified by an identical internal object key, which is calculated during the import and is stored in the AT_INTERNAL_OBJECT_KEY object attribute. Rules for the calculation of the object keys are specified in the internalobjectkeyrules XML element in the file keyrules.xml. In case of identical objects, the last object imported is transferred into the process instance.
Example
The file extract below defines rules for the calculation of the object key for functions and events. Events are identified as identical if the values of the AT_OBJNAME_INTERN and AT_MERGE_KEY_1 attributes match. Functions are identified as identical if the values of the AT_OBJNAME_INTERN and AT_END_TIME attributes match.
...
<internalobjectkeyrule>
<refobjects>
<refobject objecttype="OT_EVT"/>
</refobjects>
<keyparts>
<keypart attributetype="AT_OBJNAME_INTERN"/>
<keypart attributetype="AT_MERGE_KEY_1"/>
</keyparts>
</internalobjectkeyrule>
<internalobjectkeyrule>
<refobjects>
<refobject objecttype="OT_FUNC"/>
</refobjects>
<keyparts>
<keypart attributetype="AT_OBJNAME_INTERN"/>
<keypart attributetype="AT_END_TIME"/>
</keyparts>
</internalobjectkeyrule>
...
Warning
Define internal object key rules, which ensure that identical object keys are calculated for identical objects in the process instance, so that these objects are overwritten if re-imported.