[jboss-user] [jBPM] - Re: How to execute Service Task One by One
Esteban Aliverti
do-not-reply at jboss.com
Tue Jul 3 05:21:21 EDT 2012
Esteban Aliverti [https://community.jboss.org/people/eaa] created the discussion
"Re: How to execute Service Task One by One"
To view the discussion, visit: https://community.jboss.org/message/745674#745674
--------------------------------------------------------------
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", " mailto:jay4smile at yahoo.com jay4smile at 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
[https://community.jboss.org/message/745674#745674]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120703/8989e88e/attachment-0001.html
More information about the jboss-user
mailing list