-
1. Re: jbpm5 - When Register WorkItemHandler for a procces that run into jbpm-console
alexis_lalas Jun 4, 2011 8:26 PM (in response to alexis_lalas)Hello everyone!!
I found my own solution, but I don't know if that is the best solution.
First you have to add your class at /jbpm-5.0.0-installer-full/jboss-5.1.0.GA/server/default/deploy/jbpm-gwt-console-server.war/WEB-INF/classes,
In my case,
/jbpm-5.0.0-installer-full/jboss-5.1.0.GA/server/default/deploy/jbpm-gwt-console-server.war/WEB-INF/classes/com/aquiros/jbpm/workItemHandler/FindATrickFromWSWorkItemHandler.class
Then you have to modify the following file /jbpm-5.0.0-installer-full/jboss-5.1.0.GA/server/default/deploy/jbpm-gwt-console-server.war/WEB-INF/classes/META-INF/CustomWorkItemHandlers.conf, just add your class,
In my case, I added "FindATrickFromWS": new com.aquiros.jbpm.workItemHandler.FindATrickFromWSWorkItemHandler(),
[
"Log": new org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler(),
"FindATrickFromWS": new com.aquiros.jbpm.workItemHandler.FindATrickFromWSWorkItemHandler(),
]
My bpmn file is:
<task id="_5" name="Vehicle Tracking (GPS+)" tns:taskName="FindATrickFromWS" >
</task>
Somebody know if there are any other solution? other more pretty ?
Greetings.-
alexis_lalas