mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-01 18:26:17 +00:00
fix 修复 设置流程变量 代码使用错误问题
This commit is contained in:
@@ -8,6 +8,7 @@ import org.dromara.workflow.service.IActProcessInstanceService;
|
||||
import org.dromara.workflow.service.WorkflowService;
|
||||
import org.dromara.workflow.utils.WorkflowUtils;
|
||||
import org.flowable.engine.RuntimeService;
|
||||
import org.flowable.engine.TaskService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@@ -24,7 +25,7 @@ import java.util.Map;
|
||||
public class WorkflowServiceImpl implements WorkflowService {
|
||||
|
||||
@Autowired(required = false)
|
||||
private RuntimeService runtimeService;
|
||||
private TaskService taskService;
|
||||
private final IActProcessInstanceService actProcessInstanceService;
|
||||
private final IActHiProcinstService actHiProcinstService;
|
||||
/**
|
||||
@@ -67,7 +68,7 @@ public class WorkflowServiceImpl implements WorkflowService {
|
||||
*/
|
||||
@Override
|
||||
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
|
||||
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
|
||||
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
|
||||
public void setVariablesLocal(String taskId, Map<String, Object> variables) {
|
||||
runtimeService.setVariablesLocal(taskId, variables);
|
||||
taskService.setVariablesLocal(taskId, variables);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user