UNPKG

@tachybase/module-workflow

Version:

A powerful BPM tool that provides foundational support for business automation, with the capability to extend unlimited triggers and nodes.

21 lines (20 loc) 1.18 kB
import { Context, Next } from '@tego/server'; /** * 扩展的 list action,在返回工作流列表时附加额外字段 * - latestExecutedTime: 最新执行时间(UTC ISO 格式) * - eventSourceName: 关联的事件源名称 * - category: 分类信息数组 * * 使用 listExtended 作为 action 名称,避免覆盖默认的 list,便于后续扩展 */ export declare function listExtended(ctx: Context, next: Next): Promise<Context>; export declare function update(ctx: Context, next: any): Promise<void>; export declare function destroy(ctx: Context, next: any): Promise<void>; export declare function dump(ctx: Context, next: Next): Promise<void>; export declare function load(ctx: Context, next: Next): Promise<void>; export declare function test(ctx: Context, next: Next): Promise<never>; export declare function revision(ctx: Context, next: Next): Promise<void>; export declare function retry(ctx: Context, next: Next): Promise<any>; export declare function sync(ctx: Context, next: any): Promise<void>; export declare function trigger(ctx: Context, next: Next): Promise<void>; export declare function moveWorkflow(ctx: Context, next: Next): Promise<void>;