| | |
| | | } |
| | | |
| | | @ApiOperation(value = "查看任务", response = FormDetailVO.class) |
| | | @GetMapping(value = "/detail/{taskId}") |
| | | public AjaxResult detail(@ApiParam(value = "流程任务Id") @PathVariable(value = "taskId") String taskId) { |
| | | return flowTaskService.detail(taskId); |
| | | @GetMapping(value = "/detail/{processInsId}/{taskId}") |
| | | public AjaxResult detail(@ApiParam(value = "流程实例Id") @PathVariable(value = "processInsId") String processInsId, @ApiParam(value = "流程任务Id") @PathVariable(value = "taskId") String taskId) { |
| | | return flowTaskService.detail(processInsId, taskId); |
| | | } |
| | | |
| | | |
| | |
| | | @PostMapping("/complete/form/{taskId}") |
| | | public AjaxResult completeSubmitForm(@ApiParam(value = "流程定义id") @PathVariable(value = "taskId") String taskId, |
| | | @ApiParam(value = "变量集合,json对象") @RequestBody Map<String, Object> variables) { |
| | | return flowTaskService.completeSubmitForm(taskId, variables); |
| | | return flowTaskService.completeSubmitForm(taskId, variables, Boolean.TRUE); |
| | | } |
| | | |
| | | @ApiOperation(value = "容缺补交") |
| | | @Log(title = "容缺补交", businessType = BusinessType.INSERT) |
| | | @PostMapping("/wait/complete/form/{taskId}") |
| | | public AjaxResult waitCompleteSubmitForm(@ApiParam(value = "流程定义id") @PathVariable(value = "taskId") String taskId, |
| | | @ApiParam(value = "变量集合,json对象") @RequestBody Map<String, Object> variables) throws IOException { |
| | | return flowTaskService.waitCompleteSubmitForm(taskId, variables, Boolean.TRUE); |
| | | } |
| | | |
| | | @ApiOperation(value = "完成审批任务") |