启动流程

接口方法名称: 启动流程

接口方法: /workflowprocess/start

参数说明:

参数名释义范例数据
类型
是否
必填
取值
范围
partnerid合作商帐号001
flowcid流程实例IDFLOW00001F7077EFCEBF437F
8C354D5BFCC87D47
djtitle单据主题第一个测试单据
flowbuttonid提交节点序号1005
flowbuttons提交节点序号串1005,1006
retbuttonid返回节点序号
userid当前用户ID00000000000000000000000000
00000000000000
isEntrust是否走流程代签1是0
djid单据标识abc
spyj审批意见请审批
formmap表单参数{}

参数示例:

{
    "partnerid": "001",
    "flowcid": "FLOW00001F7077EFCEBF437F8C354D5BFCC87D47",
    "djtitle": "第一个测试单据",
    "flowbuttonid": "1005",
    "flowbuttons": "",
    "retbuttonid": "",
    "userid": "0000000000000000000000000000000000000000",
    "isEntrust": "0",
	"djid": "abc",
	"spyj": "请审批",
	"formmap": {}
}

返回值说明:

返回值名称
释义
范例数据类型是否必填取值范围
flowuserlist本次新增的审批人员列表002
flowzt流程当前状态1、审批中
2、已结束
3、已撤销
flowcid流程实例ID

复合返回值: flowuserlist

返回值名释义范例数据
类型
是否
必填
取值
范围
USERID用户ID00000000000000000000000000000
00000000000
PATHID路径IDFLOW000014B04BE7A8E948EAA9
864C0FBE43CE5D
DZNAME节点动作名称审批
FLOWZID产生的来源节点ID1003
T110
T28
T36
FORMURL审批路径http://localhost:888//module/mk
83000/approve.action?
mkid={MKID}&lbid=100100&
djid={DJID}&flowcid={FLOWCID}
&pathid={PATHID}

返回值示例:

{
    "data": {
        "flowuserlist": [
            {
                "USERID": "0000000000000000000000000000000000000000",
                "PATHID": "FLOW0000C044A9C682DA4C1E80A9DFFE37D1C689",
                "DZNAME": "审批",
                "FLOWZID": 1003,
                "T1": 10,
                "T2": 8,
                "T3": 6,
                "FORMURL": "http://localhost:888//module/mk83000/approve.action?mkid={MKID}&lbid=100100&djid={DJID}&flowcid={FLOWCID}&pathid={PATHID}"
            }
        ],
        "flowzt": "1",
        "flowcid": "FLOW00001F7077EFCEBF437F8C354D5BFCC87D47"
    },
    "success": true
}