In my JBPM approval process, I have a requirement that, if at any point of time JBPM exception happens during the process work flow., the control should delegate to a separate TaskNode called Admin node, and the normal process flow should stop. Inside Admin node the admin user decides , from which task node now the process should continue, and accordingly the flow continues
Taking into consideration this requirement I designed a admin node and a exception handler as follows..
The Exception action handler is ass follows , which transfer the flow to Admin node and creates the Taskinstance at Admin node..
This above code part is working find with creating the taskinstance at admin task node.
Now after the task is assigned to a admin user, the admin take decision from which task node the process should start, again.
The code i am using to delegate the flow from admin node to any desired task node is--
Unfortunately, I am not able to achieve my requirement. The problem I am facing is even the control is delegating to admin node, still the process continues to move forward with the selected transition from the node where exception occurs..
So basically , I am not able to stop and resume the work flow from a desired Tasknode, as a admin.
Please suggest how to achieve this ..
As per the JBPM document 10.7. Exception handling
Note that the exception handling mechanism of jBPM is not completely similar to the java exception handling. In
java, a caught exception can have an influence on the control flow. In the case of jBPM, control flow cannot be
changed by the jBPM exception handling mechanism.
So then , how to achieve my requirement ..Any work around is there?