Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
Severity | |
Read | Set to 1 to raise a warning (routing will continue). Set to 2 to
identify an error (routing is interrupted).
|
Message | | Write | Enter the string to be displayed in the warning or error message
dialog box.
|
Sample
The following sample checks whether the selected component is valid as a Route Component
depending on the value of the V_Description attribute of its
Instance or related reference.
Let listChildren(list)
Let phyRef (VPMReference)
Validation=false
if(ThisObject.V_description == "RouteComponent")
{
Validation=true
}
else
{
listChildren= ThisObject.Children
phyRef= listChildren->GetItem(1)
if ( phyRef.V_description == "RouteComponent")
{
Validation=true
}
else
{
Validation=false
}
}