JBoss Community

Re: How to get WorkItemHandler results

created by out sider in jBPM - View the full discussion

Process deisgner?

 

I'm simply doing:

 

KnowledgeBase kbase = readKnowledgeBase(pack, title);

StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();

LoginWorkItemHandler loginHandler = new LoginWorkItemHandler();

ksession.getWorkItemManager().registerWorkItemHandler("Login", loginHandler);

ProcessInstance process = ksession.startProcess("mg.login");

 

I create the knowledge base and session and register the WorkItemHandler with the manager.

 

Then I start the process.

 

After ksession.startProcess I want to acess the result of the LoginWorkItemHandler that I added to the map....how can I do that?

 

I just want to run a process with a WorkItemHandler and acess after its executation to the result...nothing more.

Reply to this message by going to Community

Start a new discussion in jBPM at Community