-
1. Re: Jbpm5 error event
odelyaholiday Feb 9, 2011 10:21 AM (in response to npereira)look here http://community.jboss.org/thread/161306
Another solution is to embed it in embedded sub process.
inside you have parameters: error handle.
click on it and add one call it MyError
choose java code and you can write there handling the error. for example:
((org.drools.workflow.instance.NodeInstance) kcontext.getNodeInstance()).cancel();
kcontext.getProcessInstance().signalEvent("YourEvent", null);
inside the embedded sub process you can create error event and call it MyError
Hope this helps
-
2. Jbpm5 error event
npereira Feb 9, 2011 10:25 AM (in response to odelyaholiday)Hi,
Thanks Odelya, but that post was started by me.
And in that one we discussed how to handle java errors and how to create new workitems.
This time, I am focussing specifically on the "Error Event" item.
This item has in its properties "Fault Name", "FaultVariable" but I can't really undestand how I can link it to a Human Taks, for example....
In BPMN you can link error events to a Task, like in this link: http://en.bpmn-community.org/process/show/909/
My question is how am I abel to do the same in jBPM5?
thanks
-
3. Re: Jbpm5 error event
odelyaholiday Feb 9, 2011 11:00 AM (in response to npereira)When you stand on the BPMN file you have there Exception Handlers.
you can do what I described in the first step.