-
1. Re: Register CustomWorkItem in kmodule.xml
sai.ve.5 Jan 17, 2015 4:59 AM (in response to biswajit.sarkar)Hi-
Here is an option: -> this is for 6.0.GA BPM suite
option 1
---------------
1. Go and edit kmodule.xml
2. example of one of my project is attached here:
<ksession name="rolrlbpmsession" type="stateful" default="true" clockType="realtime">
<workItemHandlers>
<workItemHandler type="new com.crl.rol.jbpm.workitemhandlers.TestSyncWorkItemHandler()" name="Email"/>
</workItemHandlers>
3. add workitemhandler project as dependency after uploading it on to maven repository of BPM suite; it's possible other dependencies might have to be in compile mode (as earlier JBPM dependencies were in provided mode (maven) and it worked when using web-inf\lib of business central)
4. save and compile
5. end
Regards,
Sai -
2. Re: Register CustomWorkItem in kmodule.xml
biswajit.sarkar Jan 17, 2015 1:26 PM (in response to sai.ve.5)thanks sai for your reply.
I dont understand your third point.
3. add workitemhandler project as dependency after uploading it on to maven repository of BPM suite; it's possible other dependencies might have to be in compile mode (as earlier JBPM dependencies were in provided mode (maven) and it worked when using web-inf\lib of business central)
can you please elaborate?
-
3. Re: Register CustomWorkItem in kmodule.xml
sai.ve.5 Jan 22, 2015 3:50 AM (in response to biswajit.sarkar)1 of 1 people found this helpfulwhat i meant is this?
1. work handlers you mention it in kmodule.xml
2. put it in web-inf\lib and restart the run-time (other option in 6.0.2.GA is to add to KIE repositiory instead of web-inf\lib; it seems to throw errors for me in 6.0.2GA at run-time and hence i've kept it in web-inf\lib for now)
3. also, undeploy and redeploy your kjar (project) so that it uses new work handlers