-
1. Re: Lots of versions of the same process
salaboy21 Nov 21, 2008 11:44 AM (in response to claym)Look in your hibernate.cfg.xml file if your hbm2ddl is set to drop-create...
this may be the cause -
2. Re: Lots of versions of the same process
claym Nov 21, 2008 12:25 PM (in response to claym)Wouldn't "drop-create" drop all the tables and therefore I'd never see more than one instance?
-
3. Re: Lots of versions of the same process
salaboy21 Nov 21, 2008 12:34 PM (in response to claym)You are right, I don't know why I put that...
tell me more about your scenario...
what do you mean when you said
a new version of a process -
4. Re: Lots of versions of the same process
claym Nov 21, 2008 12:43 PM (in response to claym)The JBPM Console has this:
Process ID Process Name Version 319 migration 4 241 migration 3 131 migration 2 1 migration 1
The process definition has not changed. -
5. Re: Lots of versions of the same process
salaboy21 Nov 21, 2008 12:46 PM (in response to claym)What class in the spring module are you using?
I'm using the JBPM Spring Module -
6. Re: Lots of versions of the same process
claym Nov 21, 2008 12:50 PM (in response to claym)Here's my definitions
<bean id="jbpmConfiguration" class="org.springmodules.workflow.jbpm31.LocalJbpmConfigurationFactoryBean"> <property name="sessionFactory" ref="mmSessionFactory" /> <property name="configuration" value="classpath:/jbpm.cfg.xml" /> <property name="processDefinitionsResources"> <list> <value>classpath:/foo/bar/migration/processdefinition.xml</value> </list> </property> </bean> <bean id="jbpmTemplate" class="org.springmodules.workflow.jbpm31.JbpmTemplate"> <constructor-arg index="0" ref="jbpmConfiguration" /> </bean>
-
7. Re: Lots of versions of the same process
salaboy21 Nov 21, 2008 12:55 PM (in response to claym)if you google that class you will find this:
https://springmodules.dev.java.net/docs/reference/0.6/html/jbpm31.html
This tells you that the process definition will be deployed every time that you start up your server -
8. Re: Lots of versions of the same process
claym Nov 21, 2008 4:02 PM (in response to claym)Ok, it seems that manually deploying a process is the best solution unless it's a testing thing.
Thanks! -
9. Re: Lots of versions of the same process
kukeltje Nov 22, 2008 6:04 PM (in response to claym)Yes, the sping jBPM template is also not very up to date. You miss jbpm 3.2 functionality and it is as usefull as the hibernate template (imo not useful at all). You can configure jBPM via spring afaik, but I'd ditch the template. It caused us (the company I worked for) more problems than it solved.