5 Replies Latest reply on Mar 14, 2014 7:49 AM by Mauricio Salatino

    Catch java exceptions with a boundary error event

    Jocelyn Duc Novice



      I am trying to do some error handling. I have attached a boundary error event on a service task. In my service task I volountarily throw a new ValidationException. Doing this, the flow goes through the boundary error event. But how to recover the exception message in the next task?


      By reading the documentation, I found some stuffs about throwing error with FaultName. but nothing about getting messages from a java exception. How to do it?


      My goal is to check if a user task form inputs are coherent with some external data in the service task and, in case of error, redirecting the user to the form with an error message.