General InformationThis opening ID is invoked during the Logical to Physical synchronization. For the selected element, the Business Rule checks whether the predefined part numbers of logical elements are synchronized with part numbers of physical element. This opening ID is used to:
By default, if the predefined part number of logical connector is different from the part number of corresponding physical connector, the physical instance is replaced with instance of reference whose part number matches with the predefined part number of logical. The table below provides you with information related to the definition of the Opening ID.
Input ObjectsInput objects must be of the following types:
If the output Boolean of business rule is TRUE, the physical component instance name will be synchronized with logical component instance name. Severity messages:
Note that this notion is not mandatory but it is used by the electrical command. Context Object Parameters
SampleThe 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")
} | |||||||||||||||||||||