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