提交 10ba9acc 编写于 作者: J Joram Barrez

Fix for failing tests on oracle (multi tenancy) - part 3

上级 b02cbb72
......@@ -13,6 +13,7 @@
package org.activiti.engine.impl.jobexecutor;
import org.activiti.engine.ActivitiException;
import org.activiti.engine.ProcessEngineConfiguration;
import org.activiti.engine.impl.cmd.StartProcessInstanceCmd;
import org.activiti.engine.impl.context.Context;
import org.activiti.engine.impl.interceptor.CommandContext;
......@@ -40,7 +41,7 @@ public class TimerStartEventJobHandler implements JobHandler {
.getDeploymentManager();
ProcessDefinition processDefinition = null;
if (job.getTenantId() == null) {
if (job.getTenantId() == null || ProcessEngineConfiguration.NO_TENANT_ID.equals(job.getTenantId())) {
processDefinition = deploymentCache.findDeployedLatestProcessDefinitionByKey(configuration);
} else {
processDefinition = deploymentCache.findDeployedLatestProcessDefinitionByKeyAndTenantId(configuration, job.getTenantId());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册