JBoss Community

how to signal event to process if exception in workItemHandler internal

created by Nick Tan in jBPM - View the full discussion

hi, folks

 

i'm looking for a way to signal some event (e.g. fail) to process, if there's (checked/unchecked) exception in workItemHandler internally?

so that the process can have a chance to handle the event?

 

i read the interface, org.drools.runtime.process.WorkItemHandler.executeWorkItem(WorkItem, WorkItemManager)

there's no any Exception qualifier for this method signature

lot of the implementation just eat the exception by "e.printStackTracc()" if there's any exception, for example: org.jbpm.bpmn2.handler.ServiceTaskHandler, and org.jbpm.process.workitem.google.calendar.GoogleCalendarWorkItemHandler

 

is it designed by intent?

any suggestion to hande this case?

thanks

 

--

Nick

Reply to this message by going to Community

Start a new discussion in jBPM at Community