This content has been marked as final.
Show 2 replies
-
1. Re: exception handling with jpdl
kukeltje.ronald.jbpm.org Dec 2, 2009 11:00 PM (in response to dcernahoschi)I'm not sure, but afair some things have changed in this area in later jBPM version. You might give 3.2.6sp1 or 7 or 8 a try. Should be dropin replacements for the one that comes with Seam
-
2. Re: exception handling with jpdl
dcernahoschi Dec 3, 2009 7:47 AM (in response to dcernahoschi)Thank you, but it doesn't work.
It seems that the only way to deal with the orginal exception is to catch it right in the save() method and than to use a decision node in the pageflow. Something like this:
try { em.flush(); versioningProblem = false; }catch(OptimisticLockException e) { versioningProblem = true; } <decision name="decisionOnSave" expression="#{expeditionMg.isVersioningProblem()}"> <transition name="true" to="error"/> <transition name="false" to="view"/> </decision>