Context Object Parameters
Table 1. Business Object Standard Parameters
| Parameter Name |
Type |
Read or Write |
Comments |
EVENT |
String |
Read |
Any of the supported events. |
TYPE |
String |
Read |
Business object type |
Table 2. Additional Parameters for batchclone
| Parameter Name |
Type |
Read or Write |
Comments |
BATCHCLONEMAP |
Map |
Read |
Map representing the whole
content of the batch clone operation. Keys represent the new objects (Relations and
Entities) and values are the source objects. |
AuditTags |
List |
Read |
Logging event of the transaction. |
Sample
Let ListTargets(List)
Let SourceObject(PLMEntity)
Let TargetObject(PLMEntity)
Set ListTargets = Parameters.Macros.GetObjectMap("BATCHCLONEMAP").GetKeys()
Set TargetObject = ListTargets.GetItem(1)
Set SourceObject = Parameters.Macros.GetObjectMap("BATCHCLONEMAP").GetValue(TargetObject)
Trace(1, "Execution batchclone on ", TargetObject.PLM_ExternalID)
TargetObject.setAttributeString("description","cloned")
Trace(1, "Execution batchclone result is ", SourceObject.PLM_ExternalID)
Validation = true