流程展示¶
说明¶
获取已编辑流程的完整数据信息
请求方式: GET
请求地址: /api/process/intact
Content-Type:
application/x-www-form-urlencoded —— 表示通过表单方式提交
查询参数:
参数 |
数据类型 |
是否必须 |
说明 |
id |
string |
否 |
pk(无需输入) |
输入参数:
参数 |
数据类型 |
是否必须 |
说明 |
输出参数:
参数 |
数据类型 |
是否必须 |
说明 |
id |
string |
是 |
流程id |
name |
string |
是 |
流程名称 |
nodeList |
array |
是 |
节点列表 |
--id |
string |
是 |
节点id |
--class |
string |
是 |
类名 |
--name |
string |
是 |
节点函数名称 |
--namespace |
string |
是 |
包名 |
--title |
string |
是 |
节点标题 |
--nodeType |
string |
是 |
节点类型(功能、事件、变量、流程控制、逻辑运算) |
--description |
string |
是 |
函数详细描述 |
--cls |
object |
是 |
前端样式 |
-- --color |
string |
是 |
颜色 |
-- --css |
string |
是 |
样式代码 |
--ports |
object |
是 |
端点 |
-- --in |
array |
是 |
入参列表 |
-- -- --id |
string |
是 |
端点id |
-- -- --name |
string |
是 |
端点名称 |
-- -- --title |
string |
是 |
端点标题 |
-- -- --portType |
string |
是 |
端点类型(flow、input) |
-- -- --dataType |
string |
是 |
数据类型 |
-- -- --value |
string |
是 |
数据值 |
-- --out |
string |
是 |
出参列表 |
日志查询请求示例:
Content-Type: 'application/x-www-form-urlencoded'
curl http://ip:port/api/process/intact?id=1001
日志查询返回数据示例:
Content-Type: 'application/json'
{
"id":"xxxxxx",
"name":"测试",
"nodeList":[
{
"id":"nnnnnn1",
"className":null,
"name":"findCoordinate",
"namespace":"fxpa.fximage",
"title":"查找图片坐标",
"nodeType":"function",
"x":400,
"y":500,
"description":"查找图片在屏幕中的位置,并返回图片中心点在屏幕上的坐标",
"cls":{
"icon":null,
"color":null
},
"ports":{
"input":[
{
"id":"pppp1",
"name":null,
"portType":"flow",
"title":null,
"dataType":null,
"value":null,
"cls":{
"color":null,
"css":null
}
}
],
"output":[
{
"id":"ppppp3",
"name":null,
"portType":"flow",
"title":null,
"dataType":null,
"value":null,
"cls":{
"color":null,
"css":null
}
}
]
},
"detailPanel":{
"common":
{
title: 通用设置,
formDatas: [
{
"name":"before",
"dataType":"number",
"elementType":"input",
"value":null,
"title":"Delay Before(secs)"
}
]
},
"options": {
title: 选项,
formDatas: [
{
"name":"confidence",
"dataType":"float",
"elementType":"input",
"value":0.9,
"title":"置信度"
}
]
}
}
}
],
"linkList":[
{
"id":"link-xxxx",
"source":"nnnnnn1",
"sourcePort":"ppppp3",
"target":"nnnnn2",
"targetPort":"ppppp7",
"cls":{
"linkType":null,
"linkColor":null,
"linkThickness":null
}
}
],
"variables":[
{
"name":"imagePath",
"type":"string",
"scope":"flow",
"value":"",
"cuser":""
}
]
}
日志查询错误返回示例:
{
"detail":"流程获取失败"
}
nodeType分类
事件:event
功能:function
变量设置:variable_set
变量获取:variable_get
流程控制:programming
逻辑运算:operation