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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Translate the entire conversation x

Workflow Set State

TomU
23-Emerald IV

Workflow Set State

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 3
ddemay
7-Bedrock
(To:TomU)

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

TomU
23-Emerald IV
(To:TomU)

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!
ddemay
7-Bedrock
(To:TomU)

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.



Announcements

Top Tags