Skip to main content
1-Visitor
February 4, 2013
Question

Terminating running WF on older revisions

  • February 4, 2013
  • 3 replies
  • 884 views

I have a requiremetn where i need to terminate a running WF, if a user does revise and creates new Version of document.


How can i achive this in WF? or is there any other way of doing this.



Regards


Giridhar

3 replies

1-Visitor
February 5, 2013

Giridhar,


That's a good one and I think doable.


I'd try to do this with a sync robot and an end robot right after it.


windchill class wt.doc.WTDocument


event CREATE


In the expression put in code to see if the your Doc is still the latest version. If it is do nothing. If it is not route to end workflow. I'm pretty sure that would work.


The workflow would need to split right of the bat so that the synch robot was running from day one.


Hope this helps


David Graham


Windchill Administrator Pro|ENGINEER Administrator CAx Administrator
Emhart Glass Manufacturing Inc.Emhart Glass Research Center123 Great Pond Drive | Windsor, CT 06095 | USATelephone +1 (203) 376-3144 | Telefax +1 (860) 298 7397Mobile +1 (203) 376-3144 | http://www.emhartglass.com






In Reply to Giri G:



I have a requiremetn where i need to terminate a running WF, if a user does revise and creates new Version of document.


How can i achive this in WF? or is there any other way of doing this.



Regards


Giridhar


1-Visitor
February 5, 2013
HI Graham



Thank you for the reply.





Let me try to implement as you suggested.



Regards

Giridhar






1-Visitor
March 19, 2013
Graham,

Finally I got some time to implement this.
Thanks for the solution, It worked for me.

I did put expression to check if there is a latest version of doc created. If yes , then ending the WF.

Regards
Giridhar