use of org.flowable.engine.history.HistoricTaskInstance in project plumdo-work by wengwh.
the class TaskRecoverResource method recoverTask.
@RequestMapping(value = "/task/{taskId}/recover", method = RequestMethod.PUT, name = "任务回收")
@ResponseStatus(value = HttpStatus.OK)
@Transactional(propagation = Propagation.REQUIRED)
public List<TaskResponse> recoverTask(@PathVariable("taskId") String taskId, @RequestBody(required = false) TaskActionRequest actionRequest) {
List<TaskResponse> responses = new ArrayList<TaskResponse>();
HistoricTaskInstance historicTaskInstance = getHistoricTaskFromRequest(taskId);
/*List<Task> tasks = taskExtService.recoverTask(historicTaskInstance.getId());
for(Task nextTask : tasks){
TaskExt taskExt = taskExtService.getTaskExtById(nextTask.getId());
responses.add(restResponseFactory.createTaskResponse(taskExt));
}*/
return responses;
}
Aggregations