JBoss Community

How to Disable CommandBasedWSHumanTaskHandler in CommandDelegate

created by Timothy Charman in jBPM - View the full discussion

Hi

 

I have written a different implementation of the human task, as I have a bunch of external systems to integrate.  The work item handler extends either side of the human task lifecycle.  This works fine when running locally.

 

But when I deploy to jBPM console server, things go awry because the CommandBasedWSHumanTaskHandler is registered with the session in the CommandDelegate.  In turn, CommandBasedWSHumanTaskHandler registers a listener for human task events, which fire when the human task completes, and restarts my workflow, even though I have not included the CommandBasedWSHumanTaskHandler in my workflow.

 

My task handler listens for the same events, but by the time my task handler is ready to restart the process, it is too late - CommandBasedWSHumanTaskHandler has already started it.

 

This is really not desirable, as it means the behaviour on the server is different than when running locally through Eclipse, and it means I cannot contribute any of my own task handlers that interact with the human task service.  I see no way to remove the CommandBasedWSHumanTaskHandler registration except by forking the code, which I want to avoid.

 

Anyone any ideas?

 

Thanks

 

Tim

Reply to this message by going to Community

Start a new discussion in jBPM at Community