流程展示

说明

  • 获取已编辑流程的完整数据信息

请求方式: 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