cancel
Showing results for 
Search instead for 
Did you mean: 

activiti 5.8 requires Spring 3.0

heymjo
Champ on-the-rise
Champ on-the-rise
Hi,

We were a bit surprised (and disappointed) to see that Spring 3.0 has now become a requirement for the activiti-spring bridge. At first i was hoping that a quick patch would be able to restore backwards compatibility but this turned out not the case. Any chance of restoring 2.5.x compatibility ?

Thanks
Jorg
4 REPLIES 4

heymjo
Champ on-the-rise
Champ on-the-rise
Correction: it has been required since at least 5.6, it was maven that managed to confuse us.

Still the question remains: will the activiti-spring bridge be backported to spring 2.5 ? From what i can see most of the 3.0 mechanisms should have 2.5.x equivalents. Not sure about the ProcessScope, that one might be different.

trademak
Star Contributor
Star Contributor
Hi,

Right, the Activiti Spring module depends on Spring 3.x
We don't plan to support backwards compatibility with 2.5.x

Best regards,

abentan
Champ in-the-making
Champ in-the-making
Hi, I'm a newcomer to Activiti and to BPMN 2.0. I've never used a BPM engine before, but, taking account several problems in my current proyect, I decided to include it. I have an old proyect, in Spring 2.5, (before 2.0) and I can't upgrade it. First I thought, even not to use Activiti, after that I tried to use Activiti without Spring, and finally I found 'something', that to me have worked very well, I least until now. It does commits, and even rollbacks without problems. This is my simple bridge:


<code lang="java">
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*      http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.abentan.activiti.spring;

import javax.sql.DataSource;

import org.apache.log4j.Logger;

/**
* Wrapper for Spring 2.5
*
* @author abentan
*/
public class SpringProcessEngineConfiguration extends org.activiti.spring.SpringProcessEngineConfiguration
{

private static Logger logger = Logger.getLogger(SpringProcessEngineConfiguration.class);

/**
  * Added for compatibility with Spring 2.5.
  *
  * @author abentan
  */
public void setDatabaseTypeS25(String databaseType)
{
  setDatabaseType(databaseType);
}

/**
  * Added for compatibility with Spring 2.5.
  *
  * @author abentan
  */
public void setDatabaseSchemaUpdateS25(String databaseSchemaUpdate)
{
  setDatabaseSchemaUpdate(databaseSchemaUpdate);
}

/**
  * Added for compatibility with Spring 2.5.
  *
  * @author abentan
  */
public void setJobExecutorActivateS25(boolean jobExecutorActivate)
{
  setJobExecutorActivate(jobExecutorActivate);
}

/**
  * Added for compatibility with Spring 2.5.
  *
  * @author abentan
  * @param dataSource
  */
public void setDataSourceS25(DataSource dataSource)
{
  setDataSource(dataSource);
}

}
</code>


And these are my defined beans:

<code>
  <bean id="processEngineConfiguration" class="com.abentan.activiti.spring.SpringProcessEngineConfiguration">
    <property name="dataSourceS25" ref="dataSource" />
    <property name="transactionManager" ref="transactionManager" />
    <property name="databaseTypeS25" value="mysql" />
    <property name="databaseSchemaUpdateS25" value="true" />
    <property name="jobExecutorActivateS25" value="true" />
    <property name="deploymentResources" value="classpath*:/*.bpmn" />
  </bean>
 
  <bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
    <property name="processEngineConfiguration" ref="processEngineConfiguration" />
  </bean>
</code>


Regards
Alejandro

frederikherema1
Star Contributor
Star Contributor
Thanks for sharing this!