Set State on Affected Objects in a Change Notice
May 24, 2012
11:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
May 24, 2012
11:13 AM
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.
Labels:
- Labels:
-
Other
1 REPLY 1
May 24, 2012
11:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
May 24, 2012
11:22 AM
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
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
