2024-06-18 17:05:56 +08:00
|
|
|
declare namespace Workflow {
|
2024-05-15 14:43:28 +08:00
|
|
|
/** 组 */
|
2024-05-20 17:10:58 +08:00
|
|
|
export type NodeDataType = {
|
2024-05-15 14:43:28 +08:00
|
|
|
/** 流程ID */
|
|
|
|
id?: string;
|
|
|
|
/** 工作流名称 */
|
|
|
|
workflowName?: string;
|
|
|
|
/** 组名称 */
|
|
|
|
groupName?: string;
|
|
|
|
/** 触发类型 */
|
2024-06-18 17:05:56 +08:00
|
|
|
triggerType?: Api.Common.TriggerType;
|
2024-05-15 14:43:28 +08:00
|
|
|
/** 触发间隔 */
|
|
|
|
triggerInterval?: string | number;
|
|
|
|
/** 阻塞策略 */
|
2024-06-18 17:05:56 +08:00
|
|
|
blockStrategy?: Api.Common.BlockStrategy;
|
2024-05-15 14:43:28 +08:00
|
|
|
/** 执行超时时间 */
|
|
|
|
executorTimeout?: number;
|
2024-06-27 17:56:23 +08:00
|
|
|
/** 方法参数 */
|
|
|
|
wfContext?: string;
|
2024-07-02 15:51:17 +08:00
|
|
|
wfContexts?: { key: string; value: string | number | boolean; type: string }[];
|
2024-05-15 14:43:28 +08:00
|
|
|
/** 工作流状态 */
|
2024-06-18 17:05:56 +08:00
|
|
|
workflowStatus?: Api.Common.WorkFlowNodeStatus;
|
2024-07-03 14:43:38 +08:00
|
|
|
/** 工作流批次状态 */
|
|
|
|
workflowBatchStatus?: Api.Common.TaskBatchStatus;
|
2024-05-15 14:43:28 +08:00
|
|
|
/** 描述 */
|
|
|
|
description?: string;
|
|
|
|
/** 流程配置 */
|
|
|
|
nodeConfig?: NodeModelType;
|
|
|
|
};
|
|
|
|
|
|
|
|
/** 节点 */
|
|
|
|
type NodeModelType = {
|
|
|
|
/** 节点名称 */
|
|
|
|
nodeName?: string;
|
|
|
|
/** 节点类型 */
|
|
|
|
nodeType?: number;
|
|
|
|
/** 条件节点列表 */
|
|
|
|
conditionNodes?: ConditionNodeType[];
|
|
|
|
/** 子节点 */
|
|
|
|
childNode?: NodeModelType;
|
|
|
|
};
|
|
|
|
|
|
|
|
/** 条件节点 */
|
|
|
|
type ConditionNodeType = {
|
|
|
|
id?: string;
|
|
|
|
/** 节点名称 */
|
|
|
|
nodeName?: string;
|
|
|
|
/** 优先级 */
|
|
|
|
priorityLevel?: number;
|
|
|
|
/** 任务批次状态 */
|
2024-06-18 17:05:56 +08:00
|
|
|
taskBatchStatus?: Api.Common.TaskBatchStatus;
|
2024-05-15 14:43:28 +08:00
|
|
|
/** 任务执行时间 */
|
|
|
|
executionAt?: string;
|
|
|
|
/** 操作原因 */
|
|
|
|
operationReason?: number;
|
|
|
|
/** 失败策略 */
|
2024-06-18 17:05:56 +08:00
|
|
|
failStrategy?: Api.Common.FailStrategy;
|
2024-05-15 14:43:28 +08:00
|
|
|
/** 工作流状态 */
|
2024-06-18 17:05:56 +08:00
|
|
|
workflowNodeStatus?: Api.Common.WorkFlowNodeStatus;
|
2024-05-15 14:43:28 +08:00
|
|
|
/** 任务节点 */
|
|
|
|
jobTask?: TaskNodeType;
|
|
|
|
/** 任务实例列表 */
|
|
|
|
jobBatchList?: {
|
|
|
|
/** 任务实例 ID */
|
|
|
|
id: string;
|
|
|
|
/** 任务 ID */
|
|
|
|
jobId: string;
|
|
|
|
/** 任务批次状态 */
|
|
|
|
taskBatchStatus: number;
|
|
|
|
}[];
|
|
|
|
/** 条件节点 */
|
|
|
|
decision?: BrachNodeType;
|
|
|
|
/** 回调节点 */
|
|
|
|
callback?: CallbackNodeType;
|
|
|
|
/** 子节点 */
|
|
|
|
childNode?: NodeModelType;
|
|
|
|
};
|
|
|
|
|
|
|
|
/** 任务节点 */
|
|
|
|
type TaskNodeType = {
|
|
|
|
/** 任务ID */
|
|
|
|
jobId?: string;
|
|
|
|
/** 任务名称 */
|
|
|
|
jobName?: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
/** 条件节点 */
|
|
|
|
type BrachNodeType = {
|
|
|
|
/** 条件节点表达式 */
|
|
|
|
nodeExpression?: string;
|
2024-07-01 15:39:32 +08:00
|
|
|
/** 模拟上下文 */
|
2024-07-01 20:19:55 +08:00
|
|
|
checkContent?: string;
|
|
|
|
checkContents?: { key: string; value: string | number | boolean; type: string }[];
|
2024-05-15 14:43:28 +08:00
|
|
|
/** 表达式类型 */
|
2024-06-18 17:05:56 +08:00
|
|
|
expressionType?: Api.Common.Expression;
|
2024-05-15 14:43:28 +08:00
|
|
|
/** 判定逻辑 */
|
2024-06-18 17:05:56 +08:00
|
|
|
logicalCondition?: Api.Common.LogicalCondition;
|
2024-05-15 14:43:28 +08:00
|
|
|
/** 其他情况标识 */
|
|
|
|
defaultDecision?: number;
|
|
|
|
};
|
|
|
|
|
|
|
|
/** 回调节点 */
|
|
|
|
type CallbackNodeType = {
|
|
|
|
/** webhook */
|
|
|
|
webhook?: string;
|
|
|
|
/** 请求类型 */
|
2024-06-18 17:05:56 +08:00
|
|
|
contentType?: Api.Common.ContentType;
|
2024-05-15 14:43:28 +08:00
|
|
|
/** 秘钥 */
|
|
|
|
secret?: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
/** 任务批次状态 */
|
|
|
|
type TaskBatchStatusType = {
|
|
|
|
/** 名称 */
|
|
|
|
name: string;
|
|
|
|
/** 标识 */
|
|
|
|
title: string;
|
|
|
|
/** 颜色 */
|
|
|
|
color: string;
|
|
|
|
/** 图标 */
|
|
|
|
icon: string;
|
|
|
|
};
|
2024-05-30 11:03:10 +08:00
|
|
|
|
|
|
|
/** 定时任务详情 */
|
|
|
|
export type JobTaskType = {
|
|
|
|
/** 定时任务 ID */
|
|
|
|
id?: string;
|
|
|
|
/** 组名称 */
|
|
|
|
groupName?: string;
|
|
|
|
/** 任务信息 ID */
|
|
|
|
jobId?: string;
|
|
|
|
/** 任务名称 */
|
|
|
|
jobName?: string;
|
|
|
|
/** 节点名称 */
|
|
|
|
nodeName?: string;
|
|
|
|
/** 任务实例 ID */
|
|
|
|
taskBatchId?: string;
|
|
|
|
/** 状态 */
|
|
|
|
jobStatus?: number;
|
|
|
|
/** 状态 */
|
2024-06-18 17:05:56 +08:00
|
|
|
taskBatchStatus?: Api.Common.TaskBatchStatus;
|
2024-05-30 11:03:10 +08:00
|
|
|
/** 执行器类型 */
|
2024-06-18 17:05:56 +08:00
|
|
|
executorType?: Api.Common.ExecutorType;
|
2024-05-30 11:03:10 +08:00
|
|
|
/** 操作原因 */
|
2024-06-18 17:05:56 +08:00
|
|
|
operationReason?: Api.Common.OperationReason;
|
2024-05-30 11:03:10 +08:00
|
|
|
/** 开始执行时间 */
|
|
|
|
executionAt?: string;
|
|
|
|
/** 执行器名称 */
|
|
|
|
executorInfo?: string;
|
|
|
|
/** 创建时间 */
|
|
|
|
createDt?: string;
|
|
|
|
/** 工作流节点ID */
|
2024-06-18 17:05:56 +08:00
|
|
|
workflowNodeId?: string;
|
2024-05-30 11:03:10 +08:00
|
|
|
/** 工作流任务批次ID */
|
2024-06-18 17:05:56 +08:00
|
|
|
workflowTaskBatchId?: string;
|
2024-05-30 11:03:10 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
/** 任务项列表 */
|
|
|
|
export type JobBatchType = {
|
|
|
|
/** ID */
|
|
|
|
id?: string;
|
|
|
|
/** 任务 ID */
|
|
|
|
jobId?: string;
|
|
|
|
/** 组名称 */
|
|
|
|
groupName?: string;
|
|
|
|
/** 地址 */
|
|
|
|
clientInfo?: string;
|
|
|
|
/** 参数 */
|
|
|
|
argsStr?: string;
|
|
|
|
/** 结果 */
|
|
|
|
resultMessage?: string;
|
|
|
|
/** 重试次数 */
|
|
|
|
retryCount?: string;
|
|
|
|
/** 开始执行时间 */
|
|
|
|
createDt?: string;
|
|
|
|
/** 任务批次 ID */
|
|
|
|
taskBatchId?: string;
|
|
|
|
/** 任务状态 ID */
|
2024-06-18 17:05:56 +08:00
|
|
|
taskStatus?: Api.Common.TaskBatchStatus;
|
2024-05-30 11:03:10 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
export type JobBatchPage = {
|
|
|
|
total: number;
|
|
|
|
data: JobTaskType[];
|
|
|
|
};
|
|
|
|
|
|
|
|
/** 任务日志 */
|
|
|
|
export type JobLogType = {};
|
|
|
|
|
|
|
|
/** Tag */
|
|
|
|
export type JobTagType = {
|
|
|
|
[key: number | string]: {
|
|
|
|
/** 名称 */
|
2024-06-18 17:05:56 +08:00
|
|
|
name: App.I18n.I18nKey;
|
2024-05-30 11:03:10 +08:00
|
|
|
/** 颜色 */
|
|
|
|
color: string;
|
|
|
|
};
|
|
|
|
};
|
2024-05-15 14:43:28 +08:00
|
|
|
}
|
2024-06-21 10:33:06 +08:00
|
|
|
|
|
|
|
declare module 'vue-drag-resize/src';
|