|
@@ -102,6 +102,7 @@ public class WorkflowMangerServiceImpl implements WorkflowMangerService {
|
|
|
@Autowired
|
|
|
private JdbcTemplate jdbcTemplate;
|
|
|
|
|
|
+ @Override
|
|
|
public void autoComplete(WorkFlowParam param, String processInstanceId, Map<String, Object> variables) {
|
|
|
List<Task> taskList = getProcessActiveTasks(processInstanceId);
|
|
|
if (null == taskList) { return; }
|
|
@@ -259,6 +260,7 @@ public class WorkflowMangerServiceImpl implements WorkflowMangerService {
|
|
|
return no.toString();
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public String create(WorkFlowParam param, Map<String, Object> variables, String processDefinitionKey) {
|
|
|
// 流程定义key存在判断
|
|
|
Assert.hasLength(processDefinitionKey);
|
|
@@ -321,6 +323,7 @@ public class WorkflowMangerServiceImpl implements WorkflowMangerService {
|
|
|
return variables;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public Object getProcessInstanceVariables(String busId, String processDefinitionKey, String variableName) {
|
|
|
String businessKey = processDefinitionKey + BUSKEYSEP + busId;
|
|
|
HistoricProcessInstance pi = historyService.createHistoricProcessInstanceQuery()
|
|
@@ -486,6 +489,7 @@ public class WorkflowMangerServiceImpl implements WorkflowMangerService {
|
|
|
return currBz;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public Task getTaskByTaskId(String taskId) {
|
|
|
return taskService.createTaskQuery().taskId(taskId).singleResult();
|
|
|
}
|
|
@@ -525,6 +529,7 @@ public class WorkflowMangerServiceImpl implements WorkflowMangerService {
|
|
|
* 签收处理<br>
|
|
|
* {@inheritDoc}
|
|
|
*/
|
|
|
+ @Override
|
|
|
public void claim(String taskId, String userId) {
|
|
|
if (!StringUtils.hasLength(userId)) { throw new ActivitiException("user.is.null"); }
|
|
|
Task task = taskService.createTaskQuery().taskId(taskId).singleResult();
|
|
@@ -755,15 +760,18 @@ public class WorkflowMangerServiceImpl implements WorkflowMangerService {
|
|
|
return processDefinition;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public JsonResult todoList(com.xt.js.gkaq.frame.wf.SinglePageRequest pageRequest, String userid, String busKey,
|
|
|
Date begin, Date end) {
|
|
|
throw new IllegalArgumentException("method not supported!");
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public List<TaskModel> doneList(String busKey, Long userid) {
|
|
|
throw new IllegalArgumentException("method not supported!");
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public List<TaskModel> doneList(Long runnerId) {
|
|
|
throw new IllegalArgumentException("method not supported!");
|
|
|
}
|