I have been using a combination of Webjects and customized code to do this.
I created some classes to update and query windchill attributes and then call these classes from within workflow expression robots.
Ravin,
Have you managed to do this ?
I have a similar problem - attempting to update soft attributes through workflow tasks. I can get variables set by the user but how do you retrieve the values from object attributes and update them ?
Thanks
Ian
In my presentation on Change Management from the PTC/USER 2009 conference I gave examples on how to get/set IBA's from workflows. There is example code in the appendix of the presentation - can be found here -
http://portal.ptcuser.org/p/do/sd/sid=704&type=0
Jeff Zemsky
-
Thanks Jeff, but that link is broken !
Regards
Ian
Sorry for any confusion - the PTC/USER 2009 Conference files are still access protected. I put a copy where everyone can get it - here is the link
http://portal.ptcuser.org/p/do/sd/sid=1103&type=0
Jeff Zemsky
-
Thanks,
I changed the first line to reference my own soft type (child of wt.change2.WTChangeIssue):-
com.lmco.Problem_Report pr= (com.lmco.Problem_Report) primaryBusinessObject;
However this throws a Syntax error:-
"D:\PTC\Windchill_9.0\Windchill\temp\WfExpression14342620.java:28: package com.lmco does not exist
com.lmco.Problem_Report pr= (com.lmco.Problem_Report) primaryBusinessObject; "
Looks like a problem with the way I am referencing my soft type "com.lmco.Problem_Report" - any ideas?
Many thanks
IAn
BTW,
Where does the System.out.println output go ?
Thanks
Ian
Thanks,
I now need to reference other attributes,
I can get Name, Number, Descriptionetc for example onChange Request:-
wt.change2.WTChangeRequest2 cp = (wt.change2.WTChangeRequest2)primaryBusinessObject;
String name = cp.getName();
But what about:-
Lifecycle State
Last Modified
Modified by
Created On
Created by
etc ???