跳到主要内容

WorkflowNode

Defined in: packages/rxdb-plugin-trigger/src/workflow/schema.ts:42

WorkflowNode - 工作流节点定义

Properties

config?

optional config?: Record<string, unknown>;

Defined in: packages/rxdb-plugin-trigger/src/workflow/schema.ts:52

节点配置(类型相关)


id

id: string;

Defined in: packages/rxdb-plugin-trigger/src/workflow/schema.ts:44

节点唯一ID


label?

optional label?: string;

Defined in: packages/rxdb-plugin-trigger/src/workflow/schema.ts:50

显示名称


position?

optional position?: WorkflowNodePosition;

Defined in: packages/rxdb-plugin-trigger/src/workflow/schema.ts:61

编辑器中位置


retry?

optional retry?: object;

Defined in: packages/rxdb-plugin-trigger/src/workflow/schema.ts:54

重试配置

factor?

optional factor?: number;

maxAttempts?

optional maxAttempts?: number;

maxTimeoutInMs?

optional maxTimeoutInMs?: number;

minTimeoutInMs?

optional minTimeoutInMs?: number;

taskId?

optional taskId?: string;

Defined in: packages/rxdb-plugin-trigger/src/workflow/schema.ts:48

关联的任务ID(task 类型必须)


type

type: WorkflowNodeType;

Defined in: packages/rxdb-plugin-trigger/src/workflow/schema.ts:46

节点类型