Skip to main content
23-Emerald IV
December 2, 2014
Question

Workflow Set State

  • December 2, 2014
  • 3 replies
  • 892 views
Random workflow question.

Is it possible to use a workflow to roll a group of objects back to their respective lifecycle states prior to the current one?

I'm thinking specifically of things that go obsolete. I can imagine a process where a particular job goes out of production and then everything used for that job is set to "obsolete". If at some point in the future the job comes back to life, I would need to set each object back to the state it was in prior to going obsolete. Some things would return to "released" and others would return to "in work". I certainly wouldn't want to have to revise everything since that has all kinds of other approvals and downstream impacts associated with it.

If I manually set state on an object, Windchill keeps track of that in the history. Can this history be queried somehow by a workflow to determine what state to roll back to?

Thanks!

Tom U.

3 replies

1-Visitor
December 2, 2014
The answer is yes to both your questions. Are you looking for the example at this point or just confirming possibility?



Sent from XFINITY Connect Mobile App

TomU23-Emerald IVAuthor
23-Emerald IV
December 2, 2014
Just confirming the possibility. I wasn’t sure if a workflow could actually query and then use the previous state. I know there are some techniques for doing this while something is under review and needs to go back to in work, but I wasn’t sure if they applied when used at some point in the distant future without an already running workflow.

Thanks!
1-Visitor
December 2, 2014
Requires some custom java code using the supported PTC API java doc but yes if no one helps here PTC will if you open a case.