[jboss-user] [jBPM] - Re: How to execute Service Task One by One
Jay Patel
do-not-reply at jboss.com
Tue Jul 3 04:30:00 EDT 2012
Jay Patel [https://community.jboss.org/people/jay4smile] created the discussion
"Re: How to execute Service Task One by One"
To view the discussion, visit: https://community.jboss.org/message/745658#745658
--------------------------------------------------------------
One by One means.
on Basis of loginStatus I want to execute another Service Task.
as per bpmn File. I have created Service Task for web Service.
on LoginStatus==true; I want to execute that.
to execute it I have written..
ksession.getWorkItemManager().registerWorkItemHandler("validation", new SimpleWorkhandler());
//KnowledgeRuntimeLogger logger = KnowledgeBuilderFactory.newFileLogger("test");
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);
ksession.getWorkItemManager().registerWorkItemHandler("WebServicesCall", new SearchBookHandler());
ksession.startProcess("com.sample.bpmn");
First Process executed Normally.
but for second process "webServicesCall"
I am getting Error Like "
bpm.workflow.instance.WorkflowRuntimeException: [com.sample.bpmn:1 - Web Service:2] -- Could not find work item handler for WebServicesCall
"
and I already Created the SearchBookHandler Class for WebServicesCall Service Task
I hope u understood!!
My Question is "How Can I execute Another Process or Processes??"
How to configure it??
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/745658#745658]
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/5841fd2d/attachment.html
More information about the jboss-user
mailing list