General InformationThe 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
SampleThe following sample shows how to use the opening ID.
Let TargetToCheck(ProdSystemOccurrence)
/* ---- output ---- */
Let OperationAsSystemAllowed(Boolean)
Let StatusMessage(String)
/* ---- custom ---- */
/* internal Variables declaration */
/* ---- end custom ---- */
/* by default operation is not allowed as System */
set OperationAsSystemAllowed = false
set StatusMessage=""
/* ---- RETRIEVE INPUT PARAMETERS ---- */
if ( true == Parameters.HasAttribute("InputTargetOcc") )
set TargetToCheck = Parameters.GetAttributeObject("InputTargetOcc")
/* ---- CODE ---- */
Let ProdSystemOpeRef(PLMEntity)
set ProdSystemOpeRef = TargetToCheck.Reference
if (ProdSystemOpeRef.IsASortOf("DELLmiGeneralOperationReference"))
{
set OperationAsSystemAllowed = true
}
if(true==OperationAsSystemAllowed) set StatusMessage="Operation allowed as System"
if(false==OperationAsSystemAllowed) set StatusMessage="Operation not allowed as System"
/* ---- END OF CODE ---- */
/* ---- FILL OUTPUT PARAMETERS ---- */
if ( true == Parameters.HasAttribute("OperationAsSystemAllowed") )
{
Parameters.SetAttributeBoolean("OperationAsSystemAllowed", OperationAsSystemAllowed)
}
if ( true == Parameters.HasAttribute("OutputMessage") )
{
Parameters.SetAttributeString("OutputMessage", StatusMessage)
}
| |||||||||||||||||||||||||||||||