Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

Re: Add a Custom Attribute to a specific task in Workflow

$
0
0

I'm on Windchill PDMLink 10.2 M020.  I downloaded the "JavaDoc" but it is way over my head.  Any Chance you could supply me with the code snippet I need to put in the expression robot?  The internal name of the attribute I am working with is "IFRQ_Number" and the variable is named the same.  I tried this code but there is an error when I do check syntax... not sure how to fix or if this is even the correct code:

 

wt.change2.WTChangeOrder2thisNotice = (wt.change2.WTChangeOrder2thisNotice) primaryBusinessObject;

com.ptc.core.lwc.server.LWCNormalizedObject obj = new com.ptc.core.lwc.server.LWCNormalizedObject(thisNotice,null,null,null);

obj.load("IFRQ_Number");

Object nameValue = obj.get("IFRQ_Number");

ChangeNoticeName = obj.get("IFRQ_Number")toString();


Viewing all articles
Browse latest Browse all 8876

Trending Articles