General InformationThis opening ID is invoked during the Logical to Physical synchronization. For the selected elements, the business rule computes the part number of the element to be instantiated corresponding to logical element, if attribute predefined part number is unset. By default, if the attributes predefined part number is unset, the element is not synchronized. A warning is logged in the Analysis Report. This computation rule is not triggered when the creation of physical element is not possible because:
The table below provides you with information related to the definition of the Opening ID.
Input ObjectsInput objects must be of the following types:
Severity messages:
If the business rule output If the reference is not found in database corresponding to new part
number Context Object Parameters
SampleThe following sample illustrates the syntax of the business rule:
In both cases, a message indicates the outcome of the synchronization. let LogPartNumber (String)
let LogInstName (String)
let ReferenceLog (RFLVPMLogicalReference)
ReferenceLog = ThisObject.Reference
LogPartNumber = ReferenceLog.GetAttributeString("V_Ens_PredefinedPartNumber")
LogInstName = ThisObject.Name
if (LogPartNumber == "")
{
Parameters.SetAttributeInteger("Severity", 1)
Parameters.SetAttributeString("Message", "Predefined Part Number was Empty, Logical Instance Name has been used as Predefined Part Number")
Parameters.SetAttributeString("L2PPreDefinedPartNumber", LogInstName)
}
Else
{
Parameters.SetAttributeInteger("Severity", 2)
Parameters.SetAttributeString("Message", "No Corresponding Physical component found for existing Predefined Part Number")
}
| |||||||||||||||||||||||||