节点数据结构

# 共性数据

{
    "nodeName": "发起人",
    "type": 0,
    "id": "root",
    "error": false,
    "formPerms": {},
    "childNode": {},
    "errorMsg": ""
}
字段 名称 备注 枚举
id 节点id
nodeName 节点名称
error 是否有错误 如果有错误不能创建流程
type 节点类型 0发起人1审批人2抄送人6触发器7延时器9子流程10路由11异步触发器
formPerms 表单权限
childNode 下级节点对象
placeHolder 节点内容展示

# 发起人

{
    "nodeName": "发起人",
    "type": 0,
    "id": "root",
    "error": false,
    "formPerms": {},
    "nodeUserList": [],
    "childNode": {},
    "multipleMode": 1,
    "dynamicFormConfig": {
        "url": "",
        "header": [],
        "body": [],
        "result": [
            {
                "field": "",
                "contentConfig": "",
                "value": ""
            }
        ]
    },
    "operList": [
        {
            "key": "pass",
            "checked": true,
            "edit": false,
            "name": "完成",
            "defaultName": "完成"
        }
    ],
    "errorMsg": ""
}
字段 名称 备注 枚举
dynamicFormConfig 动态表单配置
    enable 是否启用
    url 地址
    header 请求头
    body 请求体
    result 请求结果
        field 字段名称 主要是指远程服务提供的字段key ,比如userMinAge
        contentConfig 表单字段配置 value:值,min:最小值,max:最大值,minLength:最小长度,maxLength:最大长度,perm:表单权限,required:是否必填,radixNum:小数位数,options:选项
        value 流程的表单id

# 审批人

{
    "id": "cxygzl_069030773879",
    "nodeName": "审批人",
    "error": false,
    "type": 1,
    "parentId": "root",
    "assignedType": 5,
    "multiple": false,
    "needSignature": false,
    "multipleMode": 1,
    "completeRate": 100,
    "deptLeaderLevel": 1,
    "formUserId": "",
    "formUserName": "",
    "deptUserType": "allUser",
    "formPerms": {
        "cxygzl_069008077639": "E"
    },
    "nobody": {
        "handler": "TO_USER",
        "assignedUser": [
            {
                "type": "user",
                "id": "1",
                "name": "小哥【不要动】",
                "avatar": "https://f.ittool.cc/pic/m.jpg"
            }
        ]
    },
    "sameAsStarter": {
        "handler": "TO_CONTINUE"
    },
    "refuse": {
        "handler": "TO_NODE",
        "nodeId": "root"
    },
    "operList": [
        {
            "key": "pass",
            "checked": true,
            "edit": false,
            "name": "通过",
            "type": "primary",
            "defaultName": "通过"
        },
        {
            "key": "refuse",
            "checked": true,
            "edit": false,
            "name": "拒绝",
            "type": "danger",
            "defaultName": "拒绝"
        },
        {
            "key": "reject",
            "checked": true,
            "edit": false,
            "name": "驳回",
            "type": "danger",
            "icon": "Back",
            "defaultName": "驳回"
        },
        {
            "key": "frontJoin",
            "checked": true,
            "edit": false,
            "name": "委派",
            "type": "success",
            "icon": "CirclePlus",
            "defaultName": "委派"
        },
        {
            "key": "backJoin",
            "checked": true,
            "edit": false,
            "name": "转办",
            "type": "warning",
            "icon": "Position",
            "defaultName": "转办"
        },
        {
            "key": "addAssignee",
            "checked": true,
            "edit": false,
            "name": "加签",
            "type": "warning",
            "icon": "CirclePlusFilled",
            "defaultName": "加签"
        },
        {
            "key": "delAssignee",
            "checked": true,
            "edit": false,
            "name": "减签",
            "type": "warning",
            "icon": "RemoveFilled",
            "defaultName": "减签"
        }
    ],
    "childNode": {},
    "nodeUserList": [],
    "errorMsg": "",
    "placeHolder": "发起人自己"
}
字段 名称 备注 枚举
multiple 单选还是多选 比如发起人自选、
needSignature 是否需要签字
multipleMode 多实例模式 1会签2或签3顺签
completeRate 会签完成比例 默认是100 ,需要全部同意
deptLeaderLevel 部门负责人级别 默认为1,主要用在审批人类型:部门主管和连续多级主管上
formUserId 人员或者部门的表单id
formUserName 人员或者部门的表单名称
deptUserType 表单部门人员类型 主要用在人员类型:表单部门,用来指定是部门下得人员还是主管 allUser:所有人员,leader:主管
nobody 审批人为空对象
    handler 处理方式 TO_PASS:自动通过,TO_REFUSE:自动拒绝,TO_ADMIN:转交给流程管理员,TO_USER:指定人员
    assignedUser 人员列表 数组,当处理方式是指定人员的时候有值
refuse 审批人拒绝
    handler 处理方式 TO_END:直接结束,TO_NODE:跳转到指定节点
    nodeId 节点id 跳转到指定节点的时候,此字段有值
sameAsStarter 审批人与发起人一致
    handler 处理方式 TO_PASS:发起人不用处理, TO_CONTINUE:发起人继续处理,TO_DEPT_LEADER:转交给发起人部门主管处理,TO_ADMIN:转交给流程管理员
nodeUserList 用户对象 主要针对审批人类型:指定成员, 角色 ,指定部门主管
assignedType 执行人类型 1、指定成员2、部门主管3、角色4、发起人自选5、发起人自己7、连续多级主管8、表单人员9、表单部门10、指定部门主管11、系统自动拒绝12、系统自动通过

# 抄送人

{
    "id": "cxygzl_183636932709",
    "parentId": "root",
    "nodeName": "抄送人",
    "type": 2,
    "error": false,
    "childNode": {},
    "nodeUserList": [],
    "formPerms": {
        "cxygzl_069008077639": "R",
        "cxygzl_183781352214": "R"
    },
    "deptLeaderLevel": 1,
    "formUserId": "cxygzl_183781352214",
    "formUserName": "单部门",
    "deptUserType": "allUser",
    "assignedType": 9,
    "errorMsg": "",
    "placeHolder": "表单部门:单部门 的人员"
}
字段 名称 备注 枚举
deptLeaderLevel 部门负责人级别 默认为1,主要用在审批人类型:部门主管和连续多级主管上
formUserId 人员或者部门的表单id
formUserName 人员或者部门的表单名称
deptUserType 表单部门人员类型 主要用在人员类型:表单部门,用来指定是部门下得人员还是主管 allUser:所有人员,leader:主管
nodeUserList 用户对象 主要针对审批人类型:指定成员, 角色 ,指定部门主管
assignedType 执行人类型 1、指定成员2、部门主管3、角色4、发起人自选5、发起人自己7、连续多级主管8、表单人员9、表单部门10、指定部门主管11、系统自动拒绝12、系统自动通过

# 延时器

{
    "id": "cxygzl_189064443840",
    "nodeName": "延时器",
    "error": false,
    "type": 7,
    "parentId": "root",
    "childNode": {},
    "mode": true,
    "delayUnit": "TS",
    "value": "4",
    "errorMsg": "请设置延时器数据",
    "placeHolder": "等待4秒"
}
字段 名称 备注 枚举
mode 数据类型 true:纯数字延迟时间,false:延迟到具体日期
delayUnit 延迟时间单位 TS:秒 TM:分钟 TH:小时 D:天 M:月
value 延迟值 2023-11-23 14:00:13 或者 5

# 签署合同

{
    "fileList": [
        {
            "url": "http://pro.flyflow.cc/wj/2023-12-03/8dc33132de7f4924827bcbc743d0c5fa.pdf",
            "name": "temp.pdf"
        }
    ],
    "multiple": true,
    "signType": 1,
    "formUserId": "",
    "refuseAble": true,
    "assignedType": 5,
    "deptUserType": "allUser",
    "formUserName": "",
    "multipleMode": 1,
    "nodeUserList": [],
    "notifySetting": {
        "url": "",
        "body": [],
        "enable": false,
        "header": [],
        "result": []
    },
    "fileFromUpload": true,
    "deptLeaderLevel": 1,
    "fileFromRemoteSetting": {
        "url": "",
        "body": [],
        "header": [],
        "result": []
    }
}
字段 名称 备注 枚举
signType 签署类型 1、所有人在同一份文件签署2、每人单独签署一份文件
refuseAble 是否可以拒签
notifySetting 业务通知配置
fileFromUpload 合同来源 boolean true:本地上传 false:远程加载
fileFromRemoteSetting 当合同是远程加载时的配置

# 动态路由

{
    "id": "cxygzl_193099724308",
    "nodeName": "动态路由",
    "error": false,
    "type": 10,
    "parentId": "cxygzl_189064443840",
    "childNode": {},
    "list": [
        {
            "groupRelationMode": true,
            "mode": true,
            "error": false,
            "nodeId": "root",
            "placeHolder": "(单行文本 包含 345)",
            "groupRelation": [],
            "conditionList": [
                {
                    "mode": true,
                    "conditionList": [
                        {
                            "userKeyFieldList": [
                                {
                                    "name": "年龄",
                                    "type": "Number",
                                    "required": false,
                                    "props": "{\"options\":[],\"radixNum\":0}",
                                    "key": "cxygzl_589340798480"
                                },
                                {
                                    "name": "11111111",
                                    "type": "Input",
                                    "required": true,
                                    "props": "{\"options\":[],\"radixNum\":0}",
                                    "key": "cxygzl_589401979402"
                                },
                                {
                                    "name": "测试单选",
                                    "type": "SingleSelect",
                                    "required": false,
                                    "props": "{\"options\":[{\"key\":\"1\",\"value\":\"给各个\"},{\"key\":\"2\",\"value\":\"订单的\"}],\"radixNum\":0}",
                                    "key": "cxygzl_662901137717"
                                },
                                {
                                    "name": "日期",
                                    "type": "Date",
                                    "required": false,
                                    "props": "{\"options\":[],\"radixNum\":0}",
                                    "key": "cxygzl_526833808878"
                                },
                                {
                                    "name": "日期时间",
                                    "type": "DateTime",
                                    "required": false,
                                    "props": "{\"options\":[],\"radixNum\":0}",
                                    "key": "cxygzl_526917176344"
                                },
                                {
                                    "name": "时间",
                                    "type": "Time",
                                    "required": false,
                                    "props": "{\"options\":[],\"radixNum\":0}",
                                    "key": "cxygzl_526978033309"
                                },
                                {
                                    "name": "金额",
                                    "type": "Textarea",
                                    "required": false,
                                    "props": "{\"options\":[],\"radixNum\":6}",
                                    "key": "cxygzl_537339762010"
                                },
                                {
                                    "name": "ID",
                                    "type": "Number",
                                    "required": false,
                                    "props": "{\"options\":[],\"radixNum\":10}",
                                    "key": "cxygzl_915187314794"
                                },
                                {
                                    "name": "部门",
                                    "type": "Input",
                                    "required": true,
                                    "props": "{\"options\":[],\"radixNum\":4}",
                                    "key": "cxygzl_126675895202"
                                },
                                {
                                    "name": "姓名",
                                    "type": "Input",
                                    "required": false,
                                    "props": "{\"options\":[],\"radixNum\":4}",
                                    "key": "cxygzl_126089482681"
                                },
                                {
                                    "name": "信用评级",
                                    "type": "SingleSelect",
                                    "required": true,
                                    "props": "{\"options\":[{\"key\":\"1\",\"value\":\"A\"},{\"key\":\"2\",\"value\":\"B\"}],\"radixNum\":4}",
                                    "key": "cxygzl_384352376509"
                                },
                                {
                                    "key": "rangeUser",
                                    "type": "SelectUser",
                                    "name": "人员[系统]"
                                },
                                {
                                    "key": "rangeDept",
                                    "type": "SelectDept",
                                    "name": "部门[系统]"
                                },
                                {
                                    "key": "empty",
                                    "type": "",
                                    "name": "为空[系统]"
                                },
                                {
                                    "key": "notempty",
                                    "type": "",
                                    "name": "不为空[系统]"
                                },
                                {
                                    "key": "role",
                                    "type": "Role",
                                    "name": "角色[系统]"
                                }
                            ],
                            "key": "cxygzl_069008077639",
                            "keyType": "Input",
                            "expression": "contain",
                            "value": "345",
                            "userKey": ""
                        }
                    ]
                }
            ]
        }
    ],
    "placeHolder": "1条动态路由"
}