cancel
Showing results for 
Search instead for 
Did you mean: 

Should deploymentResouces in SpringProcessEngineConfiguration match *.bpmn pattern only?

gul
Champ in-the-making
Champ in-the-making
I have my activiti process definition xml's as below:
/src/main/resources/processes/activiti/process1-activiti.xml
/src/main/resources/processes/activiti/process2-activiti.xml
/src/main/resources/processes/activiti/process3-activiti.xml

and I am referring them through SpringProcessEngineConfiguration bean  in /processes/process-context.xml

<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
      <property name="dataSource" ref="ACT_JdbcDataSource" />
      <property name="transactionManager" ref="ACT_transactionManager" />
      <property name="databaseSchemaUpdate" value="true" />
      <property name="jobExecutorActivate" value="false" />
      <property name="asyncExecutorEnabled" value="true" />
      <property name="asyncExecutorActivate" value="true" />
      <property name="deploymentResources" value="classpath*:/processes/activiti/*-activiti.xml" />
   </bean>


but non of the resources get deployed.  Is it mandatory for the process definition xml's to end with ".bpmn.xml"?
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
The spring process engine config will pick them up, but the engine won't do anything with it unless it's .bpmn or .bpmn20.xml