JBoss Community

Re: Jbpm 5 listing processes

created by roxy1987 in jBPM - View the full discussion

Thanks for a quick reply Maciej.

I have tried using StatefulKnowledgeSession.

 

StatefulKnowledgeSession ksession = createKnowledgeSession(kBase);

ksession.getProcessInstances();

 

But it returns me an empty string always. May be I am not creating the session well?

What I am doing is the following.

 

 

 

 

 

StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();

HornetQHTWorkItemHandler humanTaskHandler =

new HornetQHTWorkItemHandler(ksession);

humanTaskHandler.setIpAddress(

"127.0.0.1");

humanTaskHandler.setPort(5153);

ksession.getWorkItemManager().registerWorkItemHandler(

"Human Task", humanTaskHandler);

 

return ksession;

 

I am guessing that the workItemHandler might be a problem. This version is just a lot different from jbpm 4 so most of my RND includes hit and trial.

 

Thanks.



Reply to this message by going to Community

Start a new discussion in jBPM at Community