Attribute Rule

This rule enables you to define the attribute values of the input Manufactured Item.

This page discusses:

General Information

This rule is invoked during the Generate MBOM and Synchronization managercommands.

Input Objects

Inputs for the rule must be of the following type:

Parameters correspond to the context object.

The Parameter input object has one input registered in it:

iMfgItem
This stores the Manufactured Item.

Sample

The following example explains how to define the Estimated Time (Internal Name = V_EstimatedTime) attribute value on the reference of the input Manufactured Item.

/* Attribute Rule */

let ProcOcc(MfgProcessOccurrence)
let ProcRef(DELFmiFunctionReference)

set ProcOcc = Parameters.GetAttributeObject("iMfgItem")
set ProcRef = Parameters.GetAttributeObject("iMfgItem")
if( ProcOcc <> NULL )
{
	ProcRef = ProcOcc.Reference
	if(ProcRef <> NULL)
	{
		ProcRef.V_EstimatedTime = 10sec
	}
}
else if(ProcRef <> NULL)
{
	ProcRef.V_EstimatedTime = 10sec
}