简要描述

启动流程

请求链接

/je/jbpm/taskInfo/startProcess

请求方式

POST

请求头

属性
Content-Type application/x-www-form-urlencoded; charset=UTF-8

请求参数

说明

参数 类型 必填 说明
pdid String 流程部署ID
beanId String 业务主键

示例

{
pdid: putongliucheng_19072409-1,
beanId: 02a28b1bfa864ab384e0e128bee1a292
}

返回结果

返回结果说明

参数 类型 必填 说明
success Boolean 是否成功
obj JSON 返回详细信息

obj说明

参数 类型 必填 默认值 说明
currentTasks String 活动任务
taskId String 任务id
taskName String 任务名称
audFlag String 流程状态
doTaskEdit Boolean 是否待处理任务人 如果是表单则控制可编辑 必填 按钮显示
btns array< String> 可用按钮CODE
bean Object 业务Bean的详细信息

成功示例

{
    "success": true,
    "obj": {
        "currentTasks": [
            "提交审批"
        ],
        "taskId": "16290002",
        "taskName": "提交审批",
        "audFlag": "WAIT",
        "doTaskEdit": true,
        "btns": [
            "wfCancelBtn",
            "wfSubmitBtn",
            "wfSuspendBtn"
        ],
        "bean": {
            "JE_DEMO_YZSQ_ID": "02a28b1bfa864ab384e0e128bee1a292",
            "SY_APPROVEDUSERNAMES": "",
            "SY_STARTEDUSER": "HK7O64bKMi0QPkTai4s",
            "SY_WARNFLAG": "0",
            "YZSQ_YZ_NAME": "",
            "SY_ACKFLAG": "0",
            "YZSQ_YZYT": "1231",
            "SY_CREATEUSERNAME": "于春辉",
            "YZSQ_BZ": "",
            "YZSQ_GHRQ": "",
            "YZSQ_JYR_NAME": "",
            "SY_LASTFLOWUSER": "",
            "YZSQ_JCRQ": "2020-05",
            "SY_ORDERINDEX": 0,
            "SY_PREAPPROVUSERNAMES": "于春辉",
            "SY_CURRENTTASK": "",
            "SY_ACKUSERNAME": "",
            "SY_PREAPPROVUSERS": "HK7O64bKMi0QPkTai4s",
            "SY_STATUS": "1",
            "SY_CREATEUSERID": "HK7O64bKMi0QPkTai4s",
            "YZSQ_LDSP": "",
            "SY_ACKTIME": "",
            "SY_AUDFLAG": "WAIT",
            "SY_PIID": "putongliucheng_19072409.02a28b1bfa864ab384e0e128bee1a292",
            "SY_ACKUSERID": "",
            "SY_PDID": "putongliucheng_19072409-1",
            "YZSQ_GZFS": "123123",
            "SY_APPROVEDUSERS": "",
            "SY_WFWARN": "",
            "YZSQ_ZGBSP": "",
            "SY_CREATEUSER": "18519710738",
            "SY_CREATETIME": "2020-05-20 17:27:14",
            "SY_LASTFLOWUSERID": "",
            "YZSQ_YZ": "1",
            "SY_STARTEDUSERNAME": "于春辉",
            "YZSQ_JYR_CODE": "于春辉",
            "SY_LASTFLOWINFO": ""
        }
    }
}

失败示例

{
    "code": "UNKOWN_ERROR",
    "errorCode": "9999",
    "exceptionId": "",
    "message": "Could not execute JDBC batch update",
    "obj": "Could not execute JDBC batch update",
    "success": false
}

接口使用场景

场景说明 备注

版本

版本 日期 说明
v1.0 2020-01-01 新增
最后编辑: 呼丽华  文档更新时间: 2024-08-21 10:58   作者:呼丽华