Sunday, January 3, 2021

Deep copy rules

Deep Copy Rules 

Deep copy rules define whether objects belonging to a business object instance are copied when a user performs a save as or revise operation on that instance. Deep copy rules can be applied to any business object type and are inherited by children business object types.


Available actions to perform deep copy rules are :

CopyAsObject

Creates a new object of the same type as the related object and relates to the new revision. Objects created by this method are totally independent of the source object. Therefore, modifications to the new object are not reflected in the source object.

CopyAsReference

Creates a new relation between the new revision and the related object. Therefore, modifications performed on the copied object are propagated to the source object

NoCopy

Does not copy forward objects of the specified property type and relation.


Important Note:

Deep copy rules with high specificity have higher precedence than those with more general applicability. Four levels of specificity, and thus precedence, are possible:

Rule Level 1 {Target Business Object, Relation Type, Attached Business Object} - 1st highest precedence

Rule Level 2 {Target Business Object, Relation Type, Match All} - 2nd highest precedence

Rule Level 3 {Target Business Object, Match All, Attached Business Object} - 3rd highest precedence

Rule Level 4 {Target Business Object, Match All, Match All} - 4th highest precedence

At each level, a rule with a custom condition=true has higher precedence over a rule with

isTrue condition.

No comments:

Post a Comment