I am writing a lightweight coordination framework using jBPM that invokes Java based servics (as opposed to web services in BPEL). I am defining each service as task within a task-node, e.g.
<task-node name='service-one'>
I am using ActionHandler listener for node-enter to invoke the service and then based on the success, I transition to the next service or abort.
Because I am deciding next target within action handler, it uses leaveNode
instead of signal.
My first question is: Is there a better way to do this?
Second question is: I noticed that when I jump to abort using leaveNode, it still invokes next task-node.