cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Set State on Affected Objects in a Change Notice

janderson
2-Guest

Set State on Affected Objects in a Change Notice

Is there a way to set state on affected objects in a change notice?


I have been asked to have Windchill Obsolete out all previous revisions when a revision is made.

1 REPLY 1
dwilliams
5-Regular Member
(To:janderson)

Try adding the following into an ECN Expression robot:



wt.fc.QueryResult qr1 =
wt.change2.ChangeHelper2.service.getChangeablesBefore(
(wt.change2.ChangeOrderIfc) primaryBusinessObject);
while(qr1.hasMoreElements())
{
wt.lifecycle.LifeCycleHelper.service.setLifeCycleState(((wt.lifecycle.Li
feCycleManaged)qr1.nextElement()),wt.lifecycle.State.toState("OBSOLETE")
,true);
}



Hope this helps,

Dax Williams
Engineering E-Tools Administrator
GE Healthcare OEC

Surgery


Announcements