数据中台
接口安全
认证
通讯安全
规则执行
通用组件
通知器
标准化字段校验
定时器
HTTP调用
Rabbit消息发布
脚本可用JAVA库
【必读】上下文
本文档使用 MrDoc 发布
-
+
首页
规则执行
## 同步调用 * 执行结果同步返回 **接口地址**:`/dataflow/scene/exec` **请求方式**:`POST` **请求参数**: | 参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema | | -------- | -------- | ----- | -------- | -------- | ------ | | requestData |请求数据|body|true|JsonNode|JsonNode| |sceneCode|场景编码|query|true|string|| **响应参数**: | 参数名称 | 参数说明 | 类型 | schema | | -------- | -------- | ----- |----- | |code|返回标记:成功标记=0,失败标记=1|integer(int32)|integer(int32)| |msg|返回信息|string|| | data|组件放在SceneContext.result中的值|object|| |requestId|请求ID,可用于查询执行日志|string|| |chainId||string|| |execLogs|执行日志|array|SceneExecLog| |  id||integer(int64)|| |  trackId||string|| |  taskId||string|| |  systemId||string|| |  sceneCode||string|| |  chainId||string|| |  nodeId||string|| |  data||object|| |  time||string(date-time)|| |  success||boolean|| |  duration||integer(int64)|| |  exception||string|| |ok||boolean|| ## 异步调用 * 执行结果通知到已配置的通知地址,或可根据requestId进行执行结果查询 **接口地址**:`/dataflow/scene/enqueue` **请求方式**:`POST` **请求参数**: | 参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema | | -------- | -------- | ----- | -------- | -------- | ------ | |requestData|请求数据|body|true|object|object| |sceneCode|场景编码|query|true|string|| **响应参数**: | 参数名称 | 参数说明 | 类型 | schema | | -------- | -------- | ----- |----- | |code|返回标记:成功标记=0,失败标记=1|integer(int32)|integer(int32)| |msg|返回信息|string|| |requestId|请求ID,可用于查询执行日志|string|| |chainId||string|| |ok||boolean|| ## 查询执行结果 **接口地址**:`/dataflow/scene/exec-result` **请求方式**:`GET` **请求参数**: | 参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema | | -------- | -------- | ----- | -------- | -------- | ------ | |requestId||query|true|string|| **响应参数**: | 参数名称 | 参数说明 | 类型 | schema | | -------- | -------- | ----- |----- | |code|返回标记:成功标记=0,失败标记=1|integer(int32)|integer(int32)| |msg|返回信息|string|| |data|数据|object|| |requestId||string|| |chainId||string|| |execLogs|执行日志|array|SceneExecLog| |  id||integer(int64)|| |  trackId||string|| |  taskId||string|| |  systemId||string|| |  sceneCode||string|| |  chainId||string|| |  nodeId||string|| |  data||object|| |  time||string(date-time)|| |  success||boolean|| |  duration||integer(int64)|| |  exception||string|| |ok||boolean|| ## 定时任务队列 * 需要到平台`定时任务管理`中添加对应任务 * 定时任务将在指定时间执行,执行的请求数据将从任务队列中获取。 ### 向任务队列添加数据 **接口地址**:`/dataflow/job/push` **请求方式**:`POST` **请求参数**: | 参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema | | -------- | -------- | ----- | -------- | -------- | ------ | |scheduledQueueDTO|ScheduledQueueDTO|body|true|ScheduledQueueDTO|ScheduledQueueDTO| |  sceneCode|||true|string|| |  requestData|||true|object|| **响应参数**: | 参数名称 | 参数说明 | 类型 | schema | | -------- | -------- | ----- |----- | |code|返回标记:成功标记=0,失败标记=1|integer(int32)|integer(int32)| |msg|返回信息|string|| |data|数据|object|| |requestId||string|| |ok||boolean||
admin
2025年7月16日 17:51
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
Markdown文件
PDF文档(打印)
分享
链接
类型
密码
更新密码