General InformationThis opening ID is invoked during the Logical to Physical synchronization. For the selected elements, the Business Rule computes if a pair of logical and physical elements can be synchronized through Logical to Physical command. This computation rule is triggered before analysis of a logical and physical element for synchronization. The table below provides you with information related to the definition of the Opening ID.
Input ObjectsInput objects must be of the following types:
Context Object Parameters
Severity messages:
If the output The analysis of its children will depend on output SampleThe following sample illustrates the business rule syntax. let PhysVPMInst(VPMInstance)
let PInstanceName (String)
let LInstanceName (String)
let LDescription (String)
set LDescription = ThisObject.GetAttributeString("V_description")
set PhysVPMInst = Parameters.GetAttributeObject("L2PPhysicalElement")
set LInstanceName = ThisObject.Name
if PhysVPMInst<>NULL
{
set PInstanceName = PhysVPMInst.Name
if PInstanceName <> LInstanceName
{
Parameters.SetAttributeBoolean("L2PSynchronizeElement",FALSE)
Parameters.SetAttributeInteger("Severity", 1)
Parameters.SetAttributeString("Message", "Logical and Physical Instance names are different : No Synchronization ")
}
Else
{
Parameters.SetAttributeBoolean("L2PSynchronizeElement",TRUE)
Parameters.SetAttributeInteger("Severity", 1)
Parameters.SetAttributeString("Message", "No Blocking Conditions : Element Synchronization Accepted")
}
}
Else
{
Parameters.SetAttributeBoolean("L2PSynchronizeElement",TRUE)
Parameters.SetAttributeInteger("Severity", 0)
}
if ThisObject.Reference.IsASortOf("EleLogicalHarness")
{
if (LDescription == "Forbid Children Synchronization")
{
Parameters.SetAttributeBoolean("L2PSynchronizeChildren",FALSE)
Parameters.SetAttributeInteger("Severity", 1)
Parameters.SetAttributeString("Message", "Children Synchronization forbidden")
}
Else
{
Parameters.SetAttributeBoolean("L2PSynchronizeChildren",TRUE)
Parameters.SetAttributeInteger("Severity", 1)
Parameters.SetAttributeString("Message", "No Blocking Conditions : Children Synchronization Accepted")
}
}
Else
{
Parameters.SetAttributeBoolean("L2PSynchronizeChildren",TRUE)
Parameters.SetAttributeInteger("Severity", 0)
} | |||||||||||||||||||||||||||||