public async Task <IActionResult> CancelFlowInstance([FromBody] WorkFlowInstanceHandleViewModel vm) { var isSuccess = await _workFlowInstanceService.CancelFlowInstance(vm.WorkFlowInstanceId); if (!isSuccess) { return(this.BadRequestResult("取消工作流失败!")); } return(Ok()); }