General InformationThe table below provides you with information related to the definition of the opening ID.
Input ObjectsInput objects must be of the following type: Context Object Parameters
SampleThe following sample shows how to use the opening ID.
Let status(Integer)
Let iNewNode(Integer)
Let iNodeIdentifier(Feature)
Let customizedName(String)
Let thisPLMEntity(DatabaseObjectType) /* the Output or Input node */
Let word1(String)
Let word2(String)
Let word3(String)
Set customizedName = ""
Set status=-1
Set word1=""
Set word2=""
Set word3=""
if ( true == Parameters.HasAttribute("iNewNode") )
{
iNewNode=Parameters.GetAttributeInteger("iNewNode")
word1="Created_"
if(0 ==iNewNode)
{
word1="Evolved_"
}
}
if ( true == Parameters.HasAttribute("isTypeNode") )
{
word2=Parameters.GetAttributeString("isTypeNode")
}
if ( true == Parameters.HasAttribute("iNodeIdentifier") )
{
iNodeIdentifier=Parameters.GetAttributeObject("iNodeIdentifier")
word3=iNodeIdentifier.Name
}
customizedName=word1+word2+"_"+word3
/* limit to 100 characters */
if (customizedName.Length()>100)
{
customizedName=customizedName.Extract(0,100)
}
Set thisPLMEntity = ThisObject
if(NULL<>thisPLMEntity)
{
thisPLMEntity.Name=customizedName
status=0
}
Parameters.SetAttributeInteger ("Status" , status)
| |||||||||||||||||||||||||||||||