General InformationThis rule is invoked during the Generate MBOM and Synchronization managercommands. Input ObjectsInputs for the rule must be of the following type: Parameters correspond to the context object. The Parameter input object has one input registered in it: iMfgItemThis stores the Manufactured Item. SampleThe following example explains how to define the Estimated Time (Internal Name = V_EstimatedTime) attribute value on the reference of the input Manufactured Item. /* Attribute Rule */
let ProcOcc(MfgProcessOccurrence)
let ProcRef(DELFmiFunctionReference)
set ProcOcc = Parameters.GetAttributeObject("iMfgItem")
set ProcRef = Parameters.GetAttributeObject("iMfgItem")
if( ProcOcc <> NULL )
{
ProcRef = ProcOcc.Reference
if(ProcRef <> NULL)
{
ProcRef.V_EstimatedTime = 10sec
}
}
else if(ProcRef <> NULL)
{
ProcRef.V_EstimatedTime = 10sec
}
| |||||||