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

Define workflow stage by java code

Highlighted

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

Re: Define workflow stage by java code

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

Re: Define workflow stage by java code

Adding of intermediate state for object is not suitable solution.

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

Re: Define workflow stage by java code

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.

Re: Define workflow stage by java code

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

Thanks,

Jarrett