JBoss Community

Registering WorkItemHandler for bpmn:Task

created by Jett Gamboa in jBPM - View the full discussion

From several samples that I've looked at, it is possible to register a handler to Human Tasks and Service Tasks by calling registerWorkItemHandler and passing the handler.

 

For Human Tasks it's, registerWorkItemHandler("Human Task", humantaskworkitemhandlergoeshere)

For Service Tasks it's, registerWorkItemHandler("Service Task", servicetaskworkitemhandlergoeshere)

 

Is it possible to assign a generic handler to a bpmn2:Task node? I tried registerWorkItemHandler("Task" ...  but it does not work. The only way I can get it to work is if I pass along the tasks Id.

 

Is there a way add a generic handler to generic nodes of a particular type?

Reply to this message by going to Community

Start a new discussion in jBPM at Community