-
1. Re: How to use a RecieveTask in KIE Workbench business process
abhijithumbe Jul 8, 2015 2:45 AM (in response to suchi052)To execute "Receive Task" we have to register "ReceiveTaskHandler" in kmodule.xml like as:
===============
<kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<kbase name="kbase" default="true" eventProcessingMode="stream" equalsBehavior="identity">
<ksession name="ksession" type="stateful" default="true" clockType="realtime">
<workItemHandlers>
<workItemHandler type="new org.jbpm.bpmn2.handler.ReceiveTaskHandler(ksession)" name="Receive Task"/>
</workItemHandlers>
</ksession>
</kbase>
</kmodule>
===============
we can register workitemhandler through "business-central.war/WEB-INF/classes/META-INF/CustomWorkItemHandlers.conf" file as well, like as:
[
"Log": new org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler(),
"WebService": new org.jbpm.process.workitem.webservice.WebServiceWorkItemHandler(ksession),
"Rest": new org.jbpm.process.workitem.rest.RESTWorkItemHandler(),
"Receive Task": new org.jbpm.bpmn2.handler.ReceiveTaskHandler(ksession)
]
Hope it helps..