This content has been marked as final.
Show 1 reply
-
1. Re: Transition Exception Handling with Tasks
vtysh Apr 19, 2007 1:47 PM (in response to kaisor)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(); }