查询流程信息
描述
根据流程数据ID查询流程信息
使用须知
开发前,请仔细阅读开发指南。
- POST请求头
{"Authorization": "Bearer YOUR_APIKEY"}
YOUR_APIKEY
请阅读开发指南了解。
接口URL
POST - /openapi/v1/app/{app_id}/entry/{entry_id}/flow_info
名词解释
名称 | 说明 |
---|---|
app_id | 应用ID |
entry_id | 该应用内的表单ID |
app_id
+entry_id
表示全局唯一的表单标识,前往开发平台中的API文档进行查看。
请求参数
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
dataId | 5c9a62f7843cbef5cf31e13d | String | 是 | 流程数据id |
请求示例
{
"dataId": "5c9a62f7843cbef5cf31e13d"
}
响应参数
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
creator | - | Object | 创建人 |
creator.user_id | 5043f034699af3458734f91c | String | 创建成员id |
creator.name | 李四 | String | 名称 |
updater | null | Object | 更新人 |
createTime | 2022-01-19 19:48:48 | DateTime | 提交时间 |
updateTime | 2022-01-20 10:10:10 | DateTime | 更新时间 |
flowVer | 1 | String | 流程版本 |
flowState | 0 | Number | 流程状态 |
chargers | 5577ebc4504e8e77036d2a09 | Array | 节点负责人 |
ccUsers | [] | Array | 节点抄送人 |
flowDecision | 0 | Number | 流程决策 |
node | - | Object | 节点信息 |
node.alias | 流程节点1 | String | 节点别名 |
node.flowId | 1 | Number | 节点id |
node.flowName | 流程节点 | String | 节点名称 |
响应数据样例
{
"creator": {
"user_id": "5d66359813f33ef2e45916f2",
"name": "李四"
},
"updater": {
"user_id": "5d66359813f33ef2e45916f2",
"name": "李四"
},
"createTime": "2022-02-16 17:31:40",
"updateTime": "2022-02-16 17:33:43",
"flowVer": "2",
"flowState": 0,
"chargers": [
"5577ebc4504e8e77036d2a09"
],
"ccUsers": [],
"flowDecision": 0,
"单行文本": "张三",
"多行文本": "webapi",
"数字": 9,
"日期时间": "2019-01-01 11:11:11",
"单选按钮组": "一年级",
"复选框组": [
"选项1",
"选项2"
],
"下拉框": "女",
"下拉复选框": [
"选项1",
"选项2"
],
"地址": {
"province": "湖南省",
"city": "长沙市",
"district": "芙蓉区",
"detail": "韶山北路"
},
"定位": {
"province": "湖南省",
"city": "长沙市",
"district": "芙蓉区",
"detail": "韶山北路",
"lnglatXY": [
112.99627,
28.193930000000002
]
},
"图片": [
{
"name": "123.jpg",
"size": 68065,
"mime": "image/jpeg",
"url": "https://www.xxxxx.com/3dbacd06732500d776a51b4fa0c2b021"
}
],
"子表单": [
{
"单行文本_子表单": "张三",
"复选框组_子表单": [
"选项1",
"选项2"
],
"图片_子表单": [
{
"name": "123.jpg",
"size": 68065,
"mime": "image/jpeg",
"url": "https://www.xxxxx.com/3dbacd06732500d776a51b4fa0c2b021"
}
]
},
{
"单行文本_子表单": "张三"
}
],
"流水号": "00117",
"成员单选": {
"_id": "5577ebc4504e8e77036d2a09",
"nickname": "李四"
},
"成员多选": [
{
"_id": "5577ebc4504e8e77036d2a09",
"nickname": "李四"
}
],
"部门单选": {
"_id": "51d1177b964603db9e60a962",
"nickname": "人事部"
},
"部门多选": [
{
"_id": "51d1177b964603db9e60a962",
"nickname": "人事部"
}
],
"node": {
"alias": "流程节点21",
"flowId": 1,
"flowName": "流程节点2"
}
}