[jboss-user] [jBPM Users] - Re: Catching invalid transition names in jBPM4

bwestrich do-not-reply at jboss.com
Tue Oct 20 10:15:05 EDT 2009


You're absolutely right, I could just call take() and see if it throws an exception. That approach would be simpler than the one I suggested. Thanks for pointing it out. 

So to summarize, it looks like the Execution interface does provide a way to see if a transition is valid (i.e. call take and see if it throws an exception). On the other hand, to get the list of valid transitions one must use the underlying implementation classes (ExecutionImpl, etc.).  

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

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



More information about the jboss-user mailing list