JBoss Community

jbpm5 - When Register WorkItemHandler for a procces that run into jbpm-console

created by alexis_lalas . in jBPM - View the full discussion

Hello,

I have a process which has  a two human tasks and one service task.

The process starts from the jbpm-console and human tasks too.

I want to know when, how and when I must register the WorkItemHandler

to ensure that run the "task FindATrickFromWS" from process.

 

 

Where should I add the class "FindATrickFromWSWorkItemHandler"?

Where should I add the following code to register the WorkItemHandler?

 

FindATrickFromWSWorkItemHandler handler = new FindATrickFromWSWorkItemHandler();

ksession.getWorkItemManager().registerWorkItemHandler("FindATrickFromWS", handler);

 

 

Thank  a lot for every.-

Greetings .-

alexis_lalas

Reply to this message by going to Community

Start a new discussion in jBPM at Community