General InformationThis opening ID is invoked during the Logical to Physical synchronization command, for the selected element, the Business Rule checks whether the instance names of logical and physical elements are synchronized. This opening ID is used to:
By default, the instance name of logical element will be set to the physical instance created through 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 Boolean of business rule is TRUE, the physical component instance name is synchronized with logical. SampleThe following sample illustrates the syntax of the business rule:
In both cases, a message indicates the outcome of the synchronization. let sName(String)
let PhysVPMInst(VPMInstance)
let bValidation(BOOLEAN)
let sMsg(STRING)
let severity(INTEGER)
let LogInstName(String)
set PhysVPMInst = Parameters.GetAttributeObject("L2PPhysicalElement")
set LogInstName = ThisObject.Name
if(PhysVPMInst <> NULL)
{
sName = PhysVPMInst.Name
if( sName == "Instance Name To Change")
{
bValidation = true
sMsg = "Instance Name will be modified"
severity = 1
}
Else
{
severity = 2
bValidation = false
sMsg = "Modification of instance name of this component forbidden"
}
}
Validation = bValidation
Parameters.Message = sMsg
Parameters.Severity = severity
| ||||||||||||||||||||||