cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow bpmn is deployed each time Tomcat starts

micharg
Champ in-the-making
Champ in-the-making
Hello,

my workflow (bpmn) is deployed each time Tomcat starts although its (xml) contents are the same.
More specifically new entries are created on tables act_re_procdef and act_re_deployment.
Then when I try to start a worfklow I get an exception that more than one workflow definitions
have been found.

Thank you,
Mike
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
How are you adding process definitions? With Spring? CDI? Something else? Or manually - but with duplicate filtering enabled?

micharg
Champ in-the-making
Champ in-the-making
Hi,

I am adding the process definitions with Spring:

<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
    <property name="deploymentResources" value="classpath*:bpmn/*.bpmn20.xml" />
    <property name="databaseType" value="oracle" />
    <property name="dataSource" ref="dataSource" />
    <property name="transactionManager" ref="transactionManager" />
  <property name="databaseSchemaUpdate" value="true" />
    <property name="jpaEntityManagerFactory" ref="emf" />
    <property name="jpaHandleTransaction" value="true" />
    <property name="jpaCloseEntityManager" value="true" />
    <property name="jobExecutorActivate" value="true" />
</bean>

frederikherema1
Star Contributor
Star Contributor
Take a look at the AutoDeploymentStrategy (see user guide) - if you use the default setting any change in any of the resources trigger a new redeploy of ALL definitions. If one definition is added/changed/removed/renamed, for example, all others are deployed as well.