Skip to main content
1-Visitor
August 21, 2014
Question

Define workflow stage by java code

  • August 21, 2014
  • 1 reply
  • 1827 views

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.

1 reply

1-Visitor
August 25, 2014

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

1-Visitor
August 27, 2014

Adding of intermediate state for object is not suitable solution.

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

1-Visitor
August 27, 2014

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.