Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
L2PPhysicalElement | PLM Entity |
Read | The physical element.
|
Sample
The following sample illustrates the business rule syntax.
let PhysVPMInst(VPMInstance)
let PInstanceName (String)
let LInstanceName (String)
set PhysVPMInst = Parameters.GetAttributeObject("L2PPhysicalElement")
set PInstanceName = PhysVPMInst.Name
set LInstanceName = ThisObject.Name
if (PInstanceName <> LInstanceName)
{
Validation = FALSE
Parameters.SetAttributeInteger("Severity", 1)
Parameters.SetAttributeString("Message", "Logical and Physical Instance names are different : No Part number Synchronization ")
}
else
{
Validation = TRUE
Parameters.SetAttributeInteger("Severity", 1)
Parameters.SetAttributeString("Message", "Logical and Physical Instance names are similar : Synchronization Allowed")
}