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 ?
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.
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 {
/** * 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); }