API to find current Transition of a content item

I wanted to find the current transition that the item is getting processed thru. I have some business logic in one of my extensions that needs to know this value.

As you mentioned in my earlier post to get the state, I used PSOWorkflowInfoFinder class. I was trying to use findWorkflowTransition(int, int) method. But this appears to simply return the PSTransition object for the workflow id, transition id passed in.

I need a method that would simply get me the transition id that is currently happening.

manvinder

This is available from the request context:

IPSRequestContext.getParameter("sys_transitionid");

Thanks Dave very much…
Is there any way we can get a list of all the available keys in IPSRequestContext, as it might prove to be very valuable in our implementation?

Look at the JavaDoc for IPSHtmlParameters. The constants in this file define almost all of the parameters. Of course, not all of the parameters will exist in all circumstances, so you still need to check if the parameter is present before using it.

Dave