Skip to content

节点审核接口

操作审核、驳回后调用

1、接口说明

节点处理事件,在审核通过、不通过时,调用业务接口

2、接口类型

get

3、接口使用

3.1、示例

java
@ApiOperation("操作:处理事件")
@GetMapping("/biz/handle")
public ActionResult<String> bizHandle(String taskId, String taskNodeId, Integer handleStatus, String userId) {
    double random = Math.random();
    if (random > 0.75) {
        //将打断流程流转
        throw new CommonException("异常的");
    } else if(random > 0.5){
        //将打断流程流转
        return ActionResult.fail("执行失败");
    }else{
        //流程正常流转
        return ActionResult.success("执行成功");
    }
}

3.2、入参

入参入参类型是否必须说明
taskIdstring流程实例id,flow_task表
taskNodeIdstring流程节点id,flow_taskNode表
handleStatusstring处理状态 0/1

0-拒绝、1-同意、2-提交、3-撤回、4-终止、5-指派、6-加签、7-转办

3.3、返回结果

json
{
    "code": 200,
    "msg": "执行成功",
    "data": {
    }
}


{
    "code": 400,
    "msg": "执行失败",
}


{
    "code": 500,
    "msg": "异常的",
}