文档
测试

获取表单模板及填写的内容信息

POST
http://192.168.100.109/apin/workflow-platform/activiti/getFormAndContent

接口描述

获取空白表单模板及填写的内容

请求参数

参数名
类型
描述
必填
processInstanceId
string
流程定义ID,必传,例如: 185002
必填

响应参数

参数名
类型
描述
必填
code
number
表示是否成功,1—成功,其他值表示失败
必填
result
object
数据字典
必填
form
object
表单模板,未填写内容的
必填
id
string
示例:4028e4f87177f328017181cd7c350007
必填
formName
string
示例:数据资产管理平台动态表单
必填
formType
string
示例:0
必填
formClassify
string
示例:表单分类
必填
formJson
string
示例:{"list":[{"type":"input","name":"输入框","placeholder":"请输入姓名","showLabel":true,"dataType":"verchar","contentLength":50,"label":{"labelTitle":"姓名","labelPosition":"left","labelwidth":50,"labelWidth":"50px"},"value":"","apiKey":"name","fieldTypes":"inputTypes","style":{"margin":"0px 0px 0px 0px"},"key":"input_1587020586298_785256"},{"type":"button","name":"按钮","btnText":"提交","btnType":"submit",...
必填
formStatus
string
示例:1
必填
terminalType
string
示例:1
必填
terminalSize
string
示例:1
必填
appKey
object
示例:null
必填
appSecret
object
示例:null
必填
createUser
string
示例:5c7ac0647152b6b401717c7aeddb050c
必填
createTime
string
示例:2020-04-16 15:04:20
必填
updateTime
string
示例:2020-04-16 15:05:12
必填
tableName
object
示例:null
必填
content
object
在表单模板上由用户填写的内容,用于表单展示
必填
id
string
示例:aab16350001742a4bb296637635350f8
必填
input_1587020586298_785256
string
示例:钟福超
必填
button_1587020594949_623746
object
示例:null
必填
createtime
object
示例:null
必填
createuser
object
示例:null
必填
updatetime
object
示例:null
必填
delflag
object
示例:null
必填

说明 / 示例

请求报文: { "processDefinitionId":"test_safdsaf:3:130010", "userId":"5c7ac06470be39ab0170ce0eab6605b0" } 返回报文: { "code": 1, "result": { "form": { "id": "4028e4f87177f328017181cd7c350007", "formName": "数据资产管理平台动态表单", "formType": "0", "formClassify": "表单分类", "formJson": "{\"list\":[{\"type\":\"input\",\"name\":\"输入框\",\"placeholder\":\"请输入姓名\",\"showLabel\":true,\"dataType\":\"verchar\",\"contentLength\":50,\"label\":{\"labelTitle\":\"姓名\",\"labelPosition\":\"left\",\"labelwidth\":50,\"labelWidth\":\"50px\"},\"value\":\"\",\"apiKey\":\"name\",\"fieldTypes\":\"inputTypes\",\"style\":{\"margin\":\"0px 0px 0px 0px\"},\"key\":\"input_1587020586298_785256\"},{\"type\":\"button\",\"name\":\"按钮\",\"btnText\":\"提交\",\"btnType\":\"submit\",\"apiKey\":\"\",\"fixedBottom\":false,\"scrollHeight\":0,\"btnTypes\":[{\"value\":\"submit\",\"label\":\"提交\"}],\"style\":{\"margin\":\"10px 10px 10px 10px\",\"padding\":\"0px 0px 0px 0px\",\"isImgBtn\":false,\"value\":\"\",\"btnStyle\":{\"borderRadius\":\"20px\",\"borderradius\":20,\"background\":\"#409EFF\",\"color\":\"#fff\"}},\"key\":\"button_1587020594949_623746\"}],\"title\":\"数据资产管理平台动态表单\",\"statsCode\":\"\",\"theme\":\"theme1\",\"fixedBottom\":[],\"style\":{\"backgroundColor\":\"#fff\",\"backgroundImage\":\"\"}}", "formStatus": "1", "terminalType": "1", "terminalSize": "1", "appKey": null, "appSecret": null, "createUser": "5c7ac0647152b6b401717c7aeddb050c", "createTime": "2020-04-16 15:04:20", "updateTime": "2020-04-16 15:05:12", "tableName": null }, "content": { "id": "aab16350001742a4bb296637635350f8", "input_1587020586298_785256": "钟福超", "button_1587020594949_623746": null, "createtime": null, "createuser": null, "updatetime": null, "delflag": null } } }