Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
iOriginalInstance | ObjectType |
Read | The original instance of the item. |
Sample
The following sample describes how to access instance attributes after an item move.
/* Use ThisObject to access attributes on instance */
Let ProcInst(DELFmiFunctionInstance)
Let OriginalProcInst(DELFmiFunctionInstance)
Let OriginalName(String)
set ProcInst = ThisObject
if ( true == Parameters.HasAttribute("iOriginalInstance"))
set OriginalProcInst = Parameters->GetAttributeObject("iOriginalInstance")
set OriginalName = OriginalProcInst.PLM_ExternalID
OriginalName = OriginalName + " is rerouted"
ThisObject.PLM_ExternalID=OriginalName