Skip to content

Margus Roo –

If you're inventing and pioneering, you have to be willing to be misunderstood for long periods of time

  • Cloudbreak Autoscale fix
  • Endast

JBPM console how to attach your custom form template to your custom process

Posted on February 10, 2013 - February 10, 2013 by margusja

If you are playing with jbpm_cosole like I am then the of of the first question will be – how can I attach my own form template (ftl).

Why I did not use guvnor? The reasone was that it did not work on my environment – Mac Os X and I also tried on Centos 6.x. I was getting all the time I started Jboss server to log:

14:08:30,328 INFO  [org.drools.repository.RulesRepositoryConfigurator] (http-localhost-127.0.0.1-8080-12) Creating an instance of the RulesRepositoryConfigurator.

14:08:33,202 INFO  [stdout] (http-localhost-127.0.0.1-8080-12) =============== session-admin-4

14:08:33,826 ERROR [org.jbpm.integration.console.shared.GuvnorConnectionUtils] (http-localhost-127.0.0.1-8080-8) Error retriving packages from guvnor: Invalid argument

So I discovered where jbpm_console looking for form templates and the place was – WEB-INF/lib/ on the deployed jbpm-gwt-console-server.war

* I created form template for my task – DemoHumanTask.ftl (DemoHumanTask – taskname in bpmn), process start form template – com.sample.demo.bpmn.ftl (com.sample.demo.bpmn is process id)

* make jar :

margusja@IRack:~/Downloads/jbpm-installer/jboss-as-7.1.1.Final/standalone/dev_war/dev_jar/margusja$ jar cvf MargusjademoProcess.jar .
added manifest
adding: com.sample.demo.bpmn.ftl(in = 317) (out= 212)(deflated 33%)
adding: DemoHumanTask.ftl(in = 1418) (out= 487)(deflated 65%)

* go back to the place where did you unpack your jbpm-gwt-console-server.war and copy created jar file to the right place:

cp ./dev_jar/margusja/MargusjademoProcess.jar ./WEB-INF/lib/

* update jbpm-gwt-console-server.war file

margusja@IRack:~/Downloads/jbpm-installer/jboss-as-7.1.1.Final/standalone/dev_war$ jar uvf jbpm-gwt-console-server.war WEB-INF/lib/MargusjademoProcess.jar
adding: WEB-INF/lib/MargusjademoProcess.jar(in = 7722) (out= 7396)(deflated 4%)

* copy updated war file to the jboss deployments directory

* restart jboss server (they say that jboss should handle on the fly new deployed wars but in my case I got errors)

* after restart I managed to see new forms generated from my form templates:

Screen Shot 2013-02-10 at 4.01.25 PM Screen Shot 2013-02-10 at 4.01.41 PM Screen Shot 2013-02-10 at 4.12.41 PM

Posted in ITTagged JBPM

Post navigation

JBPM console – edit default form template (DefaultTask.ftl)
Resistors color codes and voltage = kilohms × milliamps / Watts

2 Comments

  1. Pingback: louis vuitton fake buy
  2. Pingback: Fake Louis Vuitton Luggage

Leave a Reply

You must be logged in to post a comment.

The Master

Categories

  • Apache
  • Apple
  • Assembler
  • Audi
  • BigData
  • BMW
  • C
  • Elektroonika
  • Fun
  • Hadoop
  • help
  • Infotehnoloogia koolis
  • IOT
  • IT
  • IT eetilised
  • Java
  • Langevarjundus
  • Lapsed
  • lastekodu
  • Linux
  • M-401
  • Mac
  • Machine Learning
  • Matemaatika
  • Math
  • MSP430
  • Muusika
  • neo4j
  • openCL
  • Õpetaja identiteet ja tegevusvõimekus
  • oracle
  • PHP
  • PostgreSql
  • ProM
  • R
  • Turvalisus
  • Varia
  • Windows
Proudly powered by WordPress | Theme: micro, developed by DevriX.