JBoss Community

Re: WorkItemHandler with jbpm-console

created by tomathome in jBPM - View the full discussion

So, I answer my question for selfe again  X-(

 

small instruction how to use selfe created WorkItemHandler in the jbpm-console.

- unzip content of jbpm-installer/jboss-4.2.3.GA/server/default/deploy/jbpm-gwt-console-server.war into jbpm-installer/jboss-4.2.3.GA/server/default/deploy/jbpm-gwt-console-server.war directory

- edit jbpm-installer/jboss-4.2.3.GA/server/default/deploy/jbpm-gwt-console-server.war/WEB-INF/classes/META-INF/CustomWorkItemHandlers.conf file

 

[

  "Log": new org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler(),

  "myhandler": new de.processes.jbpm5.MyNewHandler(),

]

 

- copy your .jar library containing the 'de.processes.jbpm5.MyNewHandler()' class file into jbpm-installer/jboss-4.2.3.GA/server/default/deploy/jbpm-gwt-console-server.war/WEB-INF/lib/

 

Now you can create new bpmn process file containing:

 

<task id="_4" name="Task using my Handler" tns:taskName="myhandler" >

(...)

</task>

 

 

I hope somebody find this hint usefull. :D

Reply to this message by going to Community

Start a new discussion in jBPM at Community