.NET CORE开源工作流引擎 - 可视化流程设计器 - 工作流表单设计器 - .NET快速开发平台 - .NET三层代码生成器 - 通用权限管理

.NET MVC CORE开源工作流平台,可视化流程设计器
执行流程

接口地址:RoadFlow地址/RoadFlowOpenApi/FlowExecute/Execute

请求类型:POST

请求参数:

    token:通过获取token接口获取到的token字符串,

    //执行流程json参数字符串(提交时是json字符串JSON.stringify({}))

    json: {

        //执行类型

        type:'save-保存;submit-提交;freeSubmit-自由提交;autoSubmit-自动提交;back-退回;copyfor-抄送;end-终止;postpone-暂缓;known-已阅知;addwrite-加签;redirect-转交'

        stepId:'流程id',

        stepId:'当前步骤id-第一步发起可为空',

        taskId:'当前任务id-第一步发起可为空',

        groupId:'当前任务组id-第一步发起可为空',

        senderId:'发送人id',

        instanceId:'业务数据id',

        title:'任务标题',

        comment:'处理意见',

       sign:0|1是否签章,

        //接收步骤数组

       steps:[{

            id:'步骤id',

            members:'接收人',

            completeTime:'要求完成时间yyyy-MM-dd HH:mm字符串',

            visibility:'征求意见时的意见可见性0:仅自己可见 1:流程参与人可见',

            note:'备注说明,征求意见时接收人看到的说明',

        }...]

    },

   //表单数据json字符串(提交时是json字符串JSON.stringify({}))

    formData:{}

返回:(RoadFlow.Model.FlowRunModel.FlowExecuteResult实体类对应字段)

    {

        "success": true,//是否成功

        "code": 0,//代码  0-成功 其他为失败

        "msg": "",//错误时的错误信息

        //返回流程执行结果

        "data": {

            "code": 0,//执行流程代码 0成功,其他为对应的错误代码

            "message": "",//返回信息

            "debugMessage": "",//返回调试信息

            "stepPass": false,//步骤是否通过

            "stepCountersignPass": false,//步骤会签是否通过

            "flowCompleted": false,//流程是否完成

            "flowAllCompleted": false,//流程是否全部完成(包括抄送任务是否完成)

            "flowEnd": false,//流程是否终止

            "flowPostpone": false,//流程是否暂缓

            "backPass": false,//退回是否通过

            //当前任务处理后的后续任务

            "nextTasks": [

                {

                    "id": "258478936727621",

                    "prevId": "100000000000000",

                    "flowId": "175454696120389",

                    "flowName": "测试流程",

                    "prevStepId": "100000000000000",

                    "stepId": "178210457018438",

                    "stepName": "步骤1",

                    "groupId": "258478936727622",

                    "title": "cccccccccccccccccccccc",

                    "instanceId": "",

                    "senderId": "172355561286672",

                    "senderName": "张刚",

                    "receiverId": "172355561286672",

                    "receiverName": "张刚",

                    "receiveTime": "2022-02-19 19:33:31",

                    "receiveMember": "",

                    "completeTime": null,

                    "openTime": null,

                    "remindTime": null,

                    "taskType": 0,

                    "handleType": 0,

                    "status": 0,

                    "autoSubmit": 0,

                    "batch": 0,

                    "receiveOrder": 0,

                    "handleOrder": 0,

                    "prevStepGroup": "0",

                    "stepGroup": "0",

                    "entrustUserId": null,

                    "organizeUserId": "0",

                    "subflowGroupId": null,

                    "mainTaskId": null,

                    "solicitOpinions": null,

                    "otherType": null,

                    "note": null,

                    "nextHandler": null,

                    "completedTime": null,

                    "attachment": "",

                    "comment": "",

                    "isSign": 0,

                    "spare1": null,

                    "spare2": null,

                    "spare3": null

                }

            ],

            "autoSubmitTasks": [],//当前任务处理后要自动提交的任务

            "transferGroupIds": [],//要转移的实例组id(流程所有任务完成后要将任务组实例转移到已完成表rf_flow_task1表)

            "receiveHandler": "",//后续处理者,用于客户端信息提示(返回发送给了谁或发送到了哪一步)

            "sendMessage": "",//发送提示信息

            "backMessage": "",//退回提示信息

            //当前任务实体

            "currentTaskModel": {

                "id": "258478936727621",

                "prevId": "100000000000000",

                "flowId": "175454696120389",

                "flowName": "测试流程",

                "prevStepId": "100000000000000",

                "stepId": "178210457018438",

                "stepName": "步骤1",

                "groupId": "258478936727622",

                "title": "cccccccccccccccccccccc",

                "instanceId": "",

                "senderId": "172355561286672",

                "senderName": "张刚",

                "receiverId": "172355561286672",

                "receiverName": "张刚",

                "receiveTime": "2022-02-19 19:33:31",

                "receiveMember": "",

                "completeTime": null,

                "openTime": null,

                "remindTime": null,

                "taskType": 0,

                "handleType": 0,

                "status": 0,

                "autoSubmit": 0,

                "batch": 0,

                "receiveOrder": 0,

                "handleOrder": 0,

                "prevStepGroup": "0",

                "stepGroup": "0",

                "entrustUserId": null,

                "organizeUserId": "0",

                "subflowGroupId": null,

                "mainTaskId": null,

                "solicitOpinions": null,

                "otherType": null,

                "note": null,

                "nextHandler": null,

                "completedTime": null,

                "attachment": "",

                "comment": "",

                "isSign": 0,

                "spare1": null,

                "spare2": null,

                "spare3": null

            }

        }

    }


联系QQ:493501010电话:136 0832 5512(微信同号)邮箱:road@roadflow.net
Copyright 2014 - 2024 重庆天知软件技术有限公司 版权所有