- 使用前必读
- 云空间管理接口
- 平台管理接口
- 核心模块
- 驱动管理模块
- 报警模块
- 报警规则管理
- 报警管理
- 根据过滤器查询报警数据
- 保存一条报警数据到数据库
- 确认全部报警数据
- 根据过滤器查询归档报警数据(跳转).
- 根据ID恢复归档报警信息.
- 根据过滤器查询 报警归档配置数据
- 保存一条 报警归档配置数据到数据库
- 根据id查询 报警归档配置数据
- 根据id及数据替换原有 报警归档配置数据
- 根据id从数据库删除一条 报警归档配置数据
- 根据id更新 报警归档配置数据
- 根据报警ID字符串数组进行多条报警数据确认/处理
- 查询所有报警描述数据
- 一键归档报警信息.
- 统计报警个数数据.
- 生成根据工作表记录和规则分组的最新100条报警.
- 生成报警数据时间轴数据.
- 根据id查询报警数据
- 根据id及数据替换原有报警数据
- 根据id从数据库删除一条报警数据
- 根据id更新报警数据
- 报警清除管理
- 云空间权限管理模块
- 网络检查模块
- 数据源模块
- 仿真管理模块
- 流程引擎模块
- 流程日志
- 流程实例归档
- 流程测试
- 扩展节点
- 流程实例清除
- 流程任务
- 日志清除
- 流程管理模块
- 前端管理模块
- 报表模块
- 算法管理模块
- 数据库备份模块
- 数据源模块
- 运维管理接口
执行一次性清除流程实例
POST
/engine/instanceClean/once
流程实例清除
"actionType": "between", // 操作类型:清除数据/保留数据 between/retained
"flowName": "测试流程", // 流程名称
"status": "COMPLETED", // 流程实例执行状态
"duration": 1, // 保留天数
"time": { // 时间
"gte":"2023−11−0215:56:48","lte": "2023-11-04 15:56:51"
},
"clean_archive": true // 是否同时清除归档数据
}
请求参数
Header 参数
x-request-project
string
可选
Authorization
string
Token
默认值:
{{ACCESS_TOKEN}}
Body 参数application/json
actionType
enum<string>
可选
枚举值:
betweenretained
clean_archive
boolean
可选
duration
integer
保留天数
flowName
流程
status
string
状态
task_type
string
可选
示例值:
cycle/archiveCycle
time
object
时间段
$gt
string
可选
$gte
string
可选
$lt
string
可选
$lte
string
可选
user
object
用户
remoteAddr
string
可选
user
string
可选
示例
{
"actionType": "between",
"clean_archive": true,
"duration": 0,
"flowName": null,
"status": "string",
"task_type": "cycle/archiveCycle",
"time": {
"$gt": "string",
"$gte": "string",
"$lt": "string",
"$lte": "string"
},
"user": {
"remoteAddr": "string",
"user": "string"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/engine/instanceClean/once' \
--header 'Authorization: {{ACCESS_TOKEN}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"actionType": "between",
"clean_archive": true,
"duration": 0,
"flowName": null,
"status": "string",
"task_type": "cycle/archiveCycle",
"time": {
"$gt": "string",
"$gte": "string",
"$lt": "string",
"$lte": "string"
},
"user": {
"remoteAddr": "string",
"user": "string"
}
}'
返回响应
🟢200归档流程实例条数:10
application/json
Body
string
可选
示例
"string"
🟠400解析请求数据/起始时间和终止时间不能同时为空/获取用户信息/清除流程实例出错
🟠401无效令牌或token过期
🔴500服务器发生错误