Attachment Line
This action rule invokes when you generate the attachment line.
Input Objects
Input objects must be of the following type:
Parameters correspond to the context object.Example
The following example describes the action rule to attachment line naming.
let MFGAtt(DELStrMfgAttachmentLine)
let uName(String)
let Dash(String)
let uPath(String)
let uAttachedProd(String)
set MFGAtt = Parameters.GetAttributeObject("MfgFeature")
set Dash = "_"
if( NULL <> MFGAtt)
{
/*
* To get all path of parents process structure
* GetPathOfParents(uPath,StartNumber,EndNumber)
*/
MFGAtt->GetPathOfAllParents(uPath)
set uName = uPath
/*
* To get name of attached product
*/
set uAttachedProd = MFGAtt.AttachedProduct
uName = uName + Dash +uAttachedProd
}
Parameters.SetAttributeString("oString", uName)