SYNTAX:
xpxConditionalDeepCopyInstance (instanceId, modelId : GENERIC;
options : INTEGER; include_exclude : AGGREGATE OF GENERIC;VAR newInstance : GENERIC) status : INTEGER;
The xpxConditionalDeepCopyInstance function copies an instance graph within one data model or from one data model to another. The source instance graph consists of all instances that are directly or indirectly used by the source instance. The target instance(s) will implicitly be created, hence copy between existing instances cannot be performed by this operation.
Optionally this operation can copy a partial instance graph, one complete or one partial instance.
The data model locating the source instance must be open for read access and the target data model must be open for write access, before this operation can be successfully performed.
This function is equivalent to the EDMinterface function edmiConditionalDeepCopyInstance.
Remarks:
When copying objects (entity instances & aggregate instances) from one model to another model, the actual objects must be "copied" from the source model into the target model. Copied in this context means that new entity instances/aggregate instances have to be created in the target model and then the "primitive attribute/aggregate values" have to be assigned from the source objects to the new created objects in the target model. Hence, "normal" assignment statements cannot be used for this purpose. An assignment operation will only "copy" the InstanceId of the actual object resulting in "invalid InstanceId in target model".
General
Content
Integrations