[jboss-user] [JBoss jBPM] - Re: Un expected behavior observed with Token details

malish do-not-reply at jboss.com
Wed May 23 22:31:56 EDT 2007


We have similar issues with getting a null token using call process.getRootToken(). It is fairly easy to achieve that: 
* Define your own ActionHandler class. All it should do in execute(ctx) method, is throw new java.lang.Exception("haha")
* Place this ActionHandler into jpdl
* Invoke state transition by calling process.getRootToken().signal()

That would be the last moment when you are able to access rootToken. Next time process.getRootToken() will return NULL value.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048098#4048098

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048098



More information about the jboss-user mailing list