I have a use case like below where 'User1' submits some task from his bucket to 'User2' in case of happy path. The task moves through the 'WorkflowItemHandler' which is basically a custom handler. My problem is - if there is any exception occurred in 'WorkflowItemHandler' class where I am sending the task back to 'User1' bucket. But as all the instantiation/claim/start/complete activities are performed through REST-API call, I am not able to find a way to send faulty response to the calling API (In my case 'User1' submit).
Note:- I am currently using RH-PAM-7.3 and I have no idea what community version of jBPM it is compatible with.