将Activiti从5.22迁移到6.0会导致错误

时间:2018-04-16 11:46:06

标签: java activiti bpmn

为了从Activiti 5.2迁移到6.0,我们遵循 Migration guide。 我们在版本1.5.10.RELEASE中使用Spring Boot。 这是我们的活动流程引擎配置:

@Bean
@Primary
public SpringProcessEngineConfiguration springProcessEngineConfiguration(DataSource dataSource, PlatformTransactionManager transactionManager,
        SpringAsyncExecutor springAsyncExecutor) throws IOException {
    SpringProcessEngineConfiguration springProcessEngineConfiguration = baseSpringProcessEngineConfiguration(dataSource,
            transactionManager, springAsyncExecutor);
    springProcessEngineConfiguration.setActiviti5CompatibilityEnabled(true);

    springProcessEngineConfiguration.setActiviti5CompatibilityHandler(new DefaultActiviti5SpringCompatibilityHandler());

    return springProcessEngineConfiguration;

}

在使用升级的activiti版本部署我们的应用程序并执行一些服务任务(属于以前的activiti版本中部署的流程)之后,我们遇到了如下问题:

  

引起:org.activiti.engine.ActivitiException:无法执行   活动:   org.activiti.engine.impl.persistence.entity.ProcessDefinitionEntityImpl   无法施展   org.activiti5.engine.impl.persistence.entity.ProcessDefinitionEntity     在   org.activiti5.engine.impl.bpmn.behavior.ServiceTaskDelegateExpressionActivityBehavior.execute(ServiceTaskDelegateExpressionActivityBehavior.java:124)     at org.activiti5.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:62)     ...省略了772个常见帧

     

引起:org.activiti5.engine.ActivitiActivityExecutionException:couldn&t   执行活动:   org.activiti.engine.impl.persistence.entity.ProcessDefinitionEntityImpl   无法施展   org.activiti5.engine.impl.persistence.entity.ProcessDefinitionEntity     在   org.activiti5.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:68)     在   org.activiti5.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:100)

非常欢迎任何线索 - 提前感谢!

0 个答案:

没有答案