提交 a14c4282 编写于 作者: M Martin Grofcik

allowing expression manager change for Flowable5

(cherry picked from commit 861b8cb)
上级 1668d608
......@@ -819,6 +819,7 @@ public abstract class ProcessEngineConfigurationImpl extends ProcessEngineConfig
protected List<Object> flowable5CustomDefaultBpmnParseHandlers;
protected Set<Class<?>> flowable5CustomMybatisMappers;
protected Set<String> flowable5CustomMybatisXMLMappers;
protected Object flowable5ExpressionManager;
// buildProcessEngine
// ///////////////////////////////////////////////////////
......@@ -3640,6 +3641,15 @@ public abstract class ProcessEngineConfigurationImpl extends ProcessEngineConfig
return this;
}
public Object getFlowable5ExpressionManager() {
return flowable5ExpressionManager;
}
public ProcessEngineConfigurationImpl setFlowable5ExpressionManager(Object flowable5ExpressionManager) {
this.flowable5ExpressionManager = flowable5ExpressionManager;
return this;
}
public Object getFlowable5ListenerFactory() {
return flowable5ListenerFactory;
}
......
/* 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.
......@@ -24,6 +24,7 @@ import org.activiti.engine.ActivitiException;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.impl.bpmn.parser.factory.ActivityBehaviorFactory;
import org.activiti.engine.impl.bpmn.parser.factory.ListenerFactory;
import org.activiti.engine.impl.el.ExpressionManager;
import org.activiti.engine.impl.history.HistoryLevel;
import org.activiti.engine.parse.BpmnParseHandler;
import org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl;
......@@ -60,6 +61,7 @@ public class DefaultProcessEngineFactory {
copyBeans(flowable6Configuration, flowable5Configuration);
copyCaches(flowable6Configuration, flowable5Configuration);
copyActivityBehaviorFactory(flowable6Configuration, flowable5Configuration);
copyExpressionManager(flowable6Configuration, flowable5Configuration);
copyListenerFactory(flowable6Configuration, flowable5Configuration);
convertParseHandlers(flowable6Configuration, flowable5Configuration);
copyCustomMybatisMappers(flowable6Configuration, flowable5Configuration);
......@@ -173,6 +175,12 @@ public class DefaultProcessEngineFactory {
}
}
protected void copyExpressionManager(ProcessEngineConfigurationImpl flowable6Configuration, org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl flowable5Configuration) {
if (flowable6Configuration.getExpressionManager() != null) {
flowable5Configuration.setExpressionManager((ExpressionManager) flowable6Configuration.getFlowable5ExpressionManager());
}
}
protected void copyListenerFactory(ProcessEngineConfigurationImpl flowable6Configuration, org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl flowable5Configuration) {
if (flowable6Configuration.getFlowable5ListenerFactory() != null) {
flowable5Configuration.setListenerFactory((ListenerFactory) flowable6Configuration.getFlowable5ListenerFactory());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册