General InformationThis opening ID is invoked during the Logical to Physical synchronization, for the selected elements, the Business Rule will compute the logical element corresponding to the input physical element in input logical context. The rule will be applicable only if no implement link is found for the physical elements (system, devices, and routables). By default, if no implement link is found, synchronization of physical element is not performed. Such physical elements will be considered as extra elements. This computation rule will be triggered during analysis if no implement link is found for a physical element. 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 business rule output Context Object Parameters
SampleThe following sample illustrates how to find an instance name correspondence between a physical component and a logical component. This correspondence enables the creation of an implement link between the two components. /* ThisObject = VPMInstance */
let ChildtoplaceEQT (Feature)
let Listchild (List)
let LogRoot (RFLVPMLogicalReference)
let index (Integer)
let nbChild (Integer)
let Child (Feature)
let ComponentName(String)
let Feature(Feature)
set index = 1
LogRoot = Parameters.GetAttributeObject("L2PLogicalRoot")
Listchild = LogRoot.Children
nbChild = Listchild->Size()
For index while index <= nbChild
{
set Child = Listchild->GetItem(index)
Feature = ThisObject.Reference
ComponentName = Feature.Name
if(Child.Name == ComponentName)
{
Parameters.SetAttributeObject("L2PLogicalElement", Child)
Parameters.SetAttributeBoolean("L2PCreateImplementLink", true)
Parameters.SetAttributeInteger("Severity", 1)
Parameters.SetAttributeString("Message", " Corresponding Logical Found" )
}
else
{
Parameters.SetAttributeInteger("Severity", 1)
Parameters.SetAttributeString("Message", " Logical not Found ")
}
| |||||||||||||||||||||||||||||||||