-
1. Re: How to deploy custom WorkItemHandler to JBPM server?
mnorsic Oct 3, 2011 7:49 AM (in response to leovleov)Hi Leo,
I think custom work item handler is attached at runtime on a process instance: you are not supposed to put it into Guvnor.
You just have to import into Guvnor process definition (BPMN file), maybe Drools files or Freemarker task screen definitions, but I don't think you should add custom work handler into Guvnor. That is something you do in your code right after you instantiate process instance.
Thanks,
Miljenko
-
2. Re: How to deploy custom WorkItemHandler to JBPM server?
bpmn2user Oct 3, 2011 1:06 PM (in response to leovleov)As Miljenko suggested, you would not copy the cust workitem handels to Guvnor. You copy them to the runtime appserver environment.
Here is an example:
-
3. Re: How to deploy custom WorkItemHandler to JBPM server?
leovleov Oct 5, 2011 3:34 AM (in response to bpmn2user)Thanks a lot!
I tried the method in the link and it worked well.
-
4. Re: How to deploy custom WorkItemHandler to JBPM server?
ramanan.pathmaraj Nov 9, 2011 10:31 PM (in response to leovleov)Thanks for this post.
I copied my workitemhandler jar to JBOSS_HOME\server\default\deploy\jbpm-gwt-console-server.war\WEB-INF\lib & JBOSS_HOME\server\default\lib and restarted the jboss server. But when i hit the process definations url from jbpm-console process (http://localhost:8080/gwt-console-server/rs/process/definitions) ClassNotFoundException is thrown.
Please help me to find the solution. Thanks in advance.
-
5. Re: How to deploy custom WorkItemHandler to JBPM server?
ramanan.pathmaraj Nov 10, 2011 1:22 PM (in response to ramanan.pathmaraj)Can anybody help me on this issue?
-
6. Re: How to deploy custom WorkItemHandler to JBPM server?
leovleov Nov 16, 2011 8:23 PM (in response to ramanan.pathmaraj)I copy my workitemHandler classes to JBOSS_HOME\server\default\deploy\jbpm-gwt-console-server.war\WEB-INF\classes\{packageName}, and then edit the CustomWorkItemHandlers.conf in META-INF like
"Task1": new packageName.class1(),
...
After that, restart the jBPM and it works.
-
7. Re: How to deploy custom WorkItemHandler to JBPM server?
ramanan.pathmaraj Nov 17, 2011 11:06 AM (in response to leovleov)Thanks Leo, I copied the jar file compiled in java 1.6 but actually my jboss is running in java 1.5. That is the reason for this issue. Now it is working fine after compiling in 1.5.