|
|
|
@ -118,16 +118,16 @@ public class TaskInstanceController extends BaseController {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* change one single task instance's state from failure to forced success |
|
|
|
|
* change one single task instance's state from FAILURE to FORCED_SUCCESS |
|
|
|
|
* |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param projectName project name |
|
|
|
|
* @param taskInstanceId task instance id |
|
|
|
|
* @return the result code and msg |
|
|
|
|
*/ |
|
|
|
|
@ApiOperation(value = "force-success", notes = "") |
|
|
|
|
@ApiOperation(value = "force-success", notes = "FORCE_SINGLE_TASK_SUCCESS") |
|
|
|
|
@ApiImplicitParams({ |
|
|
|
|
@ApiImplicitParam(name = "taskInstanceId", value = "TASK_INTSTANCE_ID", required = true, dataType = "Int", example = "2") |
|
|
|
|
@ApiImplicitParam(name = "taskInstanceId", value = "TASK_INSTANCE_ID", required = true, dataType = "Int", example = "12") |
|
|
|
|
}) |
|
|
|
|
@PostMapping(value = "/force-success") |
|
|
|
|
@ResponseStatus(HttpStatus.OK) |
|
|
|
@ -136,7 +136,7 @@ public class TaskInstanceController extends BaseController {
|
|
|
|
|
@ApiParam(name = "projectName", value = "PROJECT_NAME", required = true) @PathVariable String projectName, |
|
|
|
|
@RequestParam(value = "taskInstanceId") Integer taskInstanceId) { |
|
|
|
|
logger.info("force task success, login user: {}, project:{}, task instance id:{}", |
|
|
|
|
loginUser.getUserName(), projectName.replaceAll("[\n|\r|\t]", "_"), taskInstanceId); |
|
|
|
|
loginUser.getUserName(), projectName, taskInstanceId); |
|
|
|
|
Map<String, Object> result = taskInstanceService.forceSingleTaskSuccess(loginUser, projectName, taskInstanceId); |
|
|
|
|
return returnDataList(result); |
|
|
|
|
} |
|
|
|
|