|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|