I am facing curious behavior with the jBPM engine. (jBPM version = 5.1.0.CR1)
I am working on a process definition that involves a User Task and an "Email" workitem. (see the PNG)
Once the process is started, the workitem is launched and the User Task is instanciated. in order to trace activity of the engine, I have a script task before and after the user task.
the problem is the following : when the email workitem fails (e.g smtp server not available), then the process doesn't continue after the User task completion. If email is sent correctly, the process continues OK.
How can I trap the Exception for the WorkItem and make the process continue if I want ?
Actually, the thing is that in case of Workitem failure, the process instance is not persisted in database...