fix 修复 设置流程变量 代码使用错误问题
parent
87031a0995
commit
1096c17523
|
|
@ -8,6 +8,7 @@ import org.dromara.workflow.service.IActProcessInstanceService;
|
||||||
import org.dromara.workflow.service.WorkflowService;
|
import org.dromara.workflow.service.WorkflowService;
|
||||||
import org.dromara.workflow.utils.WorkflowUtils;
|
import org.dromara.workflow.utils.WorkflowUtils;
|
||||||
import org.flowable.engine.RuntimeService;
|
import org.flowable.engine.RuntimeService;
|
||||||
|
import org.flowable.engine.TaskService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
|
@ -24,7 +25,7 @@ import java.util.Map;
|
||||||
public class WorkflowServiceImpl implements WorkflowService {
|
public class WorkflowServiceImpl implements WorkflowService {
|
||||||
|
|
||||||
@Autowired(required = false)
|
@Autowired(required = false)
|
||||||
private RuntimeService runtimeService;
|
private TaskService taskService;
|
||||||
private final IActProcessInstanceService actProcessInstanceService;
|
private final IActProcessInstanceService actProcessInstanceService;
|
||||||
private final IActHiProcinstService actHiProcinstService;
|
private final IActHiProcinstService actHiProcinstService;
|
||||||
/**
|
/**
|
||||||
|
|
@ -67,7 +68,7 @@ public class WorkflowServiceImpl implements WorkflowService {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void setVariable(String taskId, String variableName, Object value) {
|
public void setVariable(String taskId, String variableName, Object value) {
|
||||||
runtimeService.setVariable(taskId, variableName, value);
|
taskService.setVariable(taskId, variableName, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -78,7 +79,7 @@ public class WorkflowServiceImpl implements WorkflowService {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void setVariables(String taskId, Map<String, Object> variables) {
|
public void setVariables(String taskId, Map<String, Object> variables) {
|
||||||
runtimeService.setVariables(taskId, variables);
|
taskService.setVariables(taskId, variables);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -90,7 +91,7 @@ public class WorkflowServiceImpl implements WorkflowService {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void setVariableLocal(String taskId, String variableName, Object value) {
|
public void setVariableLocal(String taskId, String variableName, Object value) {
|
||||||
runtimeService.setVariableLocal(taskId, variableName, value);
|
taskService.setVariableLocal(taskId, variableName, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -101,7 +102,7 @@ public class WorkflowServiceImpl implements WorkflowService {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void setVariablesLocal(String taskId, Map<String, Object> variables) {
|
public void setVariablesLocal(String taskId, Map<String, Object> variables) {
|
||||||
runtimeService.setVariablesLocal(taskId, variables);
|
taskService.setVariablesLocal(taskId, variables);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue