JBoss Community

Re: registerWorkItemHandler workItemName

created by Esteban Aliverti in jBPM - View the full discussion

Are you creating your process using some kind of IDE? 

 

Try using a <Task> node instead of a <ServiceTask>. Something like:

 

 

<task id="_11" name="Multiply" tns:taskName="myTaskName">...

 

 

Then, in your code you can do:

 

ksession.getWorkItemManager().registerWorkItemHandler("myTaskName", new MyTaskNameWorkItemHandler());

 

You can also try to use 'tns:taskName' attribute in your <ServiceTask> node to see if it works there too. Please let me know the results.

Reply to this message by going to Community

Start a new discussion in jBPM at Community