[jBPM] New message: "Re: Deploy a new process jbpm-console 4.3"
by Maciej Swiderski
User development,
A new message was posted in the thread "Deploy a new process jbpm-console 4.3":
http://community.jboss.org/message/531379#531379
Author : Maciej Swiderski
Profile : http://community.jboss.org/people/swiderski.maciej
Message:
--------------------------------------------------------------
Richard,
you are completely right - all resources are stored in the data base including freemarker templates - they just need to have .ftl extension.
So, in general, deployment is done to a database regardless of what application service the process engine is running on. I have always used ant task to make a deployment. Please find attached build.xml prepared for it.
You need to remember that you must prepare hibernate configuration for you data base inside file: jbpm.hibernate.cfg.xml
I deploy it from eclipse as ant taks (using attached build.xml) and structure of the project is as follow:
/
/src
/*.java
/to-deploy-conf
/jbpm configuration (jbpm.cfg.xml, jbpm.hibernate.cfg.xml, jbpm.mail.properties, jbpm.mail.templates.examples.xml, logging.properties, process_forms.css)
And that works like a charm, tested with few data bases (HSQLDB, PostgreeSQL, MySQL).
HTH
Maciej
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/531379#531379
16 years, 4 months
[jBPM] New message: "Re: Deploy a new process jbpm-console 4.3"
by Richard Clayton
User development,
A new message was posted in the thread "Deploy a new process jbpm-console 4.3":
http://community.jboss.org/message/531368#531368
Author : Richard Clayton
Profile : http://community.jboss.org/people/richard.clayton
Message:
--------------------------------------------------------------
Maciej,
I too have been struggling with deployment related issues over the last month (jBPM 4.3 into JBoss AS 5.1.0). I have never once been successfully able to package a Process Definition and related files as a "bar" and deploy it into JBoss. In fact, I wish I could post some error code, but JBoss doesn't even hint at the fact that the file has been added to the deploy directory.
My next approach was to write my own upload service for manually adding Process Definitions. I have a Servlet that receives a Zip file, extracts the file into a temporary directory, and then passes a collection of files to a function that adds the resources to a new deployment. The code to perform the action has been added below:
//This is injected into the class.
protected RepositoryService repository;
public String addProcessDefinitionFromFileSystem(List resources){
NewDeployment deployment = this.repository.createDeployment();
for(File resource : resources){
deployment.addResourceFromFile(resource);
}
return deployment.deploy();
}
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/531368#531368
16 years, 4 months