vinayak Bhadage [https://community.jboss.org/people/vinayakpict] created the discussion
"Re: Domain Service task default work item handler is not working if added through META-INF/*.wid file" To view the discussion, visit: https://community.jboss.org/message/800201#800201 -------------------------------------------------------------- hi yarr, Thanks for your reply. I have tried it from the web application, have created to start the process. But still same thing is happened. but I don't know who is parsing drools.session.conf and registering the work item handler. How can initialize knowledge session to read the configuration provided in drools.session.conf ? In between I have tried to start the process from sample.drl file and registering the workitem handler and starting the process. package com.sample.drl import java.util.Map; import java.util.HashMap; import org.drools.runtime.process.ProcessInstance; import com.sample.SampleTaskWorkItemHandler; import com.sample.vo.EntityLifecycle; rule "sample start request" when $entity : EntityLifecycle( entityName == "Sample") then SampleTaskWorkItemHandler sampleWorkItemHandler = new SampleTaskWorkItemHandler (); kcontext.getKnowledgeRuntime().getWorkItemManager().registerWorkItemHandler("SampleTask", sampleWorkItemHandler ); Map params = new HashMap(); params.put("entity", $entity); ProcessInstance pi = kcontext.getKnowledgeRuntime().createProcessInstance("com.sampl.bpm.sampleRequest", params); insert(pi); kcontext.getKnowledgeRuntime().startProcessInstance(pi.getId()); end Thanks & Regards, -vinayak -------------------------------------------------------------- Reply to this message by going to Community [https://community.jboss.org/message/800201#800201] Start a new discussion in jBPM at Community [https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
