美文网首页
节点属性说明

节点属性说明

作者: 三省吾身_9862 | 来源:发表于2023-08-13 14:53 被阅读0次

    type枚举

    类型 说明
    start 开始节点
    branch 分支
    loop 循环
    continue 继续循环
    break 跳出循环
    exit 退出
    set 设置变量
    coder 编码转换
    date-format 日期格式化
    mapping 数据映射
    create-data-records 新增记录
    delete-data-records 删除记录
    update-data-records 更新记录
    query-data-records 查询记录
    http http请求
    flow 流程调用
    apicenter API中心节点
    connector 连接器
    auto-entity-add-records 流程管理 - 新增记录
    update-entity-add-records 流程管理 - 更新记录
    web-api 调用服务
    examine-and-approve-task 人工节点
    notification 发送消息
    email 发送邮件
    datasource-sql 数据源SQL
    script JS代码
    auto-entity-search-records 自动节点 - 查询记录

    通用节点属性

    字段 说明 默认值 数据类型
    type 节点类型 枚举值见[type枚举] string
    title 节点标题 string
    targetName 节点出参 或者 变量名 string
    validateFailed 前端校验是否通过 boolean

    开始节点属性

    字段 说明 默认值 数据类型
    children 下面的所有节点 array
    inputParams 服务入参 [] array
    outParams 服务出参 [{"label":"status","value":0,"dataType":"number"},{"label":"msg","value":"","dataType":"string"}] array
    globalValue 全局变量 [] array

    结束节点

    字段 说明 默认值 数据类型
    outputType 设置出参data方式[global: 出参赋值, number: 出参成员赋值] array
    output 出参赋值设置的值存放在这个字段 string
    outputParams 出参成员赋值方式,存放在这个字段 array

    设置变量

    字段 说明 默认值 数据类型
    dataType 数据类型 string
    source any

    新增记录

    字段 说明 默认值 数据类型
    dataMode 新增模式【multi:新增多条,single:新增一条】 string
    objectKey 数据表id string | number
    fields 选择的数据表有哪些字段 array
    initFields 增加哪些字段 默认有哪些值【例如:[{"name":"name","ename":"姓名","type":"text","formula":"kk"},{"name":"time","ename":"日期","type":"date","formula":"4"}]】 array

    删除记录

    字段 说明 默认值 数据类型
    objectKey 数据表id string | number
    fields 选择的数据表有哪些字段 array
    filterFields 删除条件【例如:{"conjunction":"and","children":[{"field":"name","op":"equal","right":""}]}】 object
    条件枚举
    [
      { label: '等于', value: 'equal', usedFieldType: ['int', 'text', 'date'] },
      { label: '不等于', value: 'not_equal', usedFieldType: ['int', 'text', 'date'] },
      { label: '模糊匹配', value: 'like', usedFieldType: ['text'] },
      { label: '不匹配', value: 'not_like', usedFieldType: ['text'] },
      { label: '匹配开头', value: 'starts_with', usedFieldType: ['text'] },
      { label: '匹配结尾', value: 'ends_with', usedFieldType: ['text'] },
      { label: '小于', value: 'less', usedFieldType: ['int', 'date'] },
      { label: '小于或等于', value: 'less_or_equal', usedFieldType: ['int', 'date'] },
      { label: '大于', value: 'greater', usedFieldType: ['int', 'date'] },
      { label: '大于或等于', value: 'greater_or_equal', usedFieldType: ['int', 'date'] },
      { label: '为空', value: 'is_empty', usedFieldType: ['int', 'text'] },
      { label: '不为空', value: 'is_not_empty', usedFieldType: ['int', 'text'] },
      { label: '属于范围', value: 'between', usedFieldType: ['date'] },
      { label: '不属于范围', value: 'not_between', usedFieldType: ['date'] }
    ]
    

    更新记录

    字段 说明 默认值 数据类型
    objectKey 数据表id string | number
    fields 选择的数据表有哪些字段 array
    updateFields 更新哪些字段 默认有哪些值【例如:[{"name":"name","ename":"姓名","type":"text","formula":"kk"},{"name":"time","ename":"日期","type":"date","formula":"4"}]】 array
    filterFields 更新条件【例如:{"conjunction":"and","children":[{"field":"name","op":"equal","right":""}]}】 object

    查询记录

    字段 说明 默认值 数据类型
    objectKey 数据表id string | number
    fields 选择的数据表有哪些字段 array
    selectFields 查询导出哪些字段 【例子:[{"name":"name","ename":"姓名","type":"text","formula":"${outParams.status}"}]】 array
    filterFields 更新条件【例如:{"conjunction":"and","children":[{"field":"name","op":"equal","right":""}]}】 object

    相关文章

      网友评论

          本文标题:节点属性说明

          本文链接:https://www.haomeiwen.com/subject/pcgfmdtx.html