Modify Attributes of the Output Reference or its Input Node Instances (DELMSDOutputNodeSetting_ID)

An opening ID is an entry point used to customize business logic. This opening ID is run during System/Operation Output generation. It is used to modify Output reference and Input nodes instance attributes during creation or update. For example, the name is supported by modification of a single attribute from the IdSet.

Note: For more information about customization by business rules, see Customization by Business Rules.

This page discusses:

General Information

The table below provides you with information related to the definition of the opening ID.

PLM Opening ID: DELMSDOutputNodeSetting_ID
Customization intent: Execution

Input Objects

Input objects must be of the following type:ThisObject: output product or node occurrence.

Context Object Parameters

Parameter NameTypeRead/WriteComments
iNewNodeInteger Read

1: the node is created for the first time.

2: the node is an evolution of a preexisting node.

isTypeNodeStringRead

Current: the System/Operation Output itself.

Input: an input node.

ManufacturingAssembly: a manufacturing assembly node.

iNodeIdentifierFeatureRead

Occurrence or reference giving the node name depending on the isTypeNode value.

Current: iNodeIdentifier is the Operation/System giving the output name. iNodeIdentifier is a ProdSystemOccurrence.

Input: iNodeIdentifier is a ProdSystemOccurrence.

ManufacturingAssembly: iNodeIdentifier is a manufacturing item giving the manufacturing assembly node name. iNodeIdentifier is a MfgProcessOccurrence.

StatusIntegerWrite Returns 0 if the Business Logic went well, and <> 0 if not.

Sample

The 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)