-
1. Process deployment in jBPM 5
bpmn2user Feb 27, 2011 8:58 PM (in response to newuser12)1 of 1 people found this helpfulYou can get good tranining material and examples from http://salaboy.wordpress.com/2011/01/24/announcing-jbpm5-community-training/
1) I want to create a new bpmn process and deploy that using Eclipse. I have created the process but am not sure of the deployment procedure. What is the procedure to be followed?
It depends on how you want to deploy the bpmn process. It can either be deployed in JBPM web console and use the ftl forms for user tasks. Alternately, you can also deploy the bpmn in the container of your choice and access BPM engine using your preferred front end (e.g Flex, GWT, JSP, RCP, Swing etc).
If you are planning to deploy in JBPM5 console, here are a couple of simple examples as a starting point.
http://community.jboss.org/people/bpmn2user/blog/2011/02/27/jbpm5-console--hello-process-example
http://community.jboss.org/people/bpmn2user/blog/2011/02/21/jbpm5-example-for-forms-with-variables
2) How do I add new users and groups to the system?
See this discussion http://community.jboss.org/thread/161982
Also see some examples from the source code (http://sourceforge.net/projects/jbpm/files/jBPM%205/jbpm-5.0-Final/ or from GITHUB https://github.com/krisv/jbpm/tree/master/jbpm-human-task/src/test)
You might find the api (taskSession.addUser(user), taskSession.addGroup(group) etc) useful.
3) I am not able to open the reports, the attached error is thrown in the jbpm-console. How to I start the report server?
The report engine is embedded (i.e., you do not need to start the BIRT report engine seperately) and if the install is successful, you should see the reports.
-
2. Process deployment in jBPM 5
francisco_barros Feb 28, 2011 6:08 AM (in response to newuser12)Hi!
>> 3) I am not able to open the reports, the attached error is thrown in the jbpm-console. How to I start the report server?
I don't know if this will of any help, but in file <jBPM-installation-dir>\build.properties there is
# defines whether you want the birt plugin (for reporting) to be downloaded or not
# by default this is turned off to avoid having to do a rather large download
# if you do not download the birt plugin, reporting in the jbpm-console will not work
# put this property to true if you want to download birt as well
jBPM.birt.download=false
Have you modified jBPM.birt.download to true before running ant install.demo?
-
3. Process deployment in jBPM 5
dawid.booyse Feb 28, 2011 8:16 AM (in response to bpmn2user)Hi
http://community.jboss.org/people/bpmn2user/blog/2011/02/27/jbpm5-console--hello-process-example
says you need to copy the bpmn file to where the other files are
any idea where this is?
5.) Copy the HelloProcess.bpmn file to the directory where the other bpmn files are located
(specified using the parameter -Djbpm.console.directory).
-
4. Re: Process deployment in jBPM 5
bpmn2user Feb 28, 2011 11:25 AM (in response to dawid.booyse)It is the directory specified in build.xml using the property '-Djbpm.console.directory' for JBoss start up option.
<arg value="-Djbpm.console.directory=${install.home}/sample/evaluation/src/main/resources" />
It is basically the directory you have specify using the property 'jbpm.console.directory' for any appserver in the startup script (e.g, Tomat http://community.jboss.org/thread/160572). Let us say you have decided to keep the files in "C:\bpmn\resources',. You need to include the following property in the startup script, e.g., catalina.bat in Tomcat
-Djbpm.console.directory=C:/bpmn/resources
-
5. Process deployment in jBPM 5
diduch Feb 28, 2011 5:56 PM (in response to bpmn2user)IF YOU DONT USE ant start.jboss and you only make ./run.sh where you configure the jbpm.console.directory in jboss?????
-
6. Process deployment in jBPM 5
bpmn2user Feb 28, 2011 9:58 PM (in response to diduch)You can include this option in run.conf/run.conf.bat
-
7. Process deployment in jBPM 5
dawid.booyse Mar 1, 2011 3:07 AM (in response to bpmn2user)Hi
I have changed my underlying database from hypersonice to MS sql server
Will the method of deployment described in
http://community.jboss.org/people/bpmn2user/blog/2011/02/27/jbpm5-console--hello-process-example
work?
I have follwed the steps but the console does not pick up my new process
-
8. Process deployment in jBPM 5
dawid.booyse Mar 1, 2011 5:06 AM (in response to dawid.booyse)Sorry
missed the whole part of drools-guvnr, its much easier to manage the processes through guvnr
thanks for the help
-
9. Process deployment in jBPM 5
newuser12 Mar 2, 2011 11:42 PM (in response to bpmn2user)Thanks for the detailed information. I was having some issues with my jBPM installation. So I had to do a clean install once again. To do that I ran, ant clean.demo. Then once again ran, ant install.demo.
Now, when I try to acces the process in the process overview in jBPM console, I am getting the following error.
- URL: 'http://localhost:8080/gwt-console-server/rs/process/definition/com.sample.bpmn.hello/instances'
- Action: 'org.jboss.bpm.console.client.process.UpdateInstancesAction'
- Exception: 'class com.google.gwt.http.client.RequestException'
HTTP 500:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.jboss.resteasy.spi.UnhandledException: java.lang.NoClassDefFoundError: org/jboss/bpm/console/client/model/ProcessInstanceRefWrapper org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319) org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230) org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
Any ideas on how to handle this?
-
10. Process deployment in jBPM 5
newuser12 Mar 3, 2011 1:03 AM (in response to francisco_barros)Thanks. Setting it to true helped.
-
11. Process deployment in jBPM 5
dawid.booyse Mar 7, 2011 3:49 AM (in response to newuser12)hi
i get the same 500 error
what setting did you cahnge to true?
Thanks
-
12. Process deployment in jBPM 5
priscila.britto May 5, 2011 11:39 AM (in response to newuser12)I have a doubt. I am doing deploy when I click in "Build Package" in Drools Guvnor?
Previously steps, I just am doing a commit. right?
Best Regards,
Priscila Britto
-
13. Re: Process deployment in jBPM 5
chaitanya1987 Aug 1, 2011 8:24 PM (in response to newuser12)Can a process deployed via drools-guvnor ui be accessed from a seperate stateless session bean from a .ear file.
Also if not, another approach i read was to deply .bpmn process file, associated forms and java classes into jbpm-gwt-server-console.war file. Would this method be appropriate for deployment and accessing the process definition from the seperate .ear file ?
I wish to instantiate the deployed process definition using stateless session bean from a seperate .ear file
-
14. Re: Process deployment in jBPM 5
enriquezrene Jan 28, 2013 1:47 PM (in response to bpmn2user)I was wondering how can I deploy a bpmn file in runtime, I know that the .bpmn file is located in -Djbpm.console.directory, but when I put a new .bpmn file I can't see it on the web console and I need to restart JBoss AS, is there any other way?