JBoss Community

Re: How to execute Service Task One by One

created by Esteban Aliverti in jBPM - View the full discussion

Just move up this line:

  ksession.getWorkItemManager().registerWorkItemHandler("WebServicesCall", new SearchBookHandler());

 

Something like this:

 

//Register Work Item Handlers:

ksession.getWorkItemManager().registerWorkItemHandler("validation", new SimpleWorkhandler());

ksession.getWorkItemManager().registerWorkItemHandler("WebServicesCall", new SearchBookHandler());

 

//Start first instance

Map<String,Object> params = new HashMap<String,Object>();

params.put("userName", "jay4smile@yahoo.com");

params.put("password", "jay123");

ksession.startProcess("com.sample.bpmn",params);

 

//start second instance

ksession.startProcess("com.sample.bpmn");

 

 

Best Regards,

Reply to this message by going to Community

Start a new discussion in jBPM at Community