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

We are happy to announce the new Windchill Customization board! Learn more.

Define workflow stage by java code

VasiliyRepecki
1-Newbie

Define workflow stage by java code

Hi.

Is it possible to define what workflow stage object is at?

I have WTPart soft type with specified workflow. I need to make some menu actions for this object available only on certain assigned activity.

How can i define by java code whether my object reached this stage in workflow?

Thanks.

4 REPLIES 4

((wt.lifecycle.LifeCycleManaged)(Object)).getState()

Adding of intermediate state for object is not suitable solution.

I need determine has my object reached specific Assigned Activity or not.

May be it will usefull for you...

You may create hidden attribute to control it. When the activity will init some code will add the attribute value.

You may have some luck coding a contitional that is connected to all the states you are interested in jumping between.

Thanks,

Jarrett

Top Tags