[jboss-user] [JBoss jBPM] - Re: Transition Exception Handling with Tasks
vtysh
do-not-reply at jboss.com
Thu Apr 19 13:47:24 EDT 2007
Try to process an exception in your application while you are ending taskInstance. With session transaction mechanism you able to rollback it if ending of task fails. But i don't know how to correctly close JbpmContext after rollback, because default close method begin to throw exceptions after performing of it.
| Transaction transaction=jbpmContext.getSession().getTransaction();
| transaction.begin();
| try
| {
| taskInstance.end();
| }
| }catch(Excepton e)
| {
| transaction.rollback();
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038981#4038981
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038981
More information about the jboss-user
mailing list