UNPKG

@nocobase/plugin-workflow

Version:

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

25 lines (24 loc) 1.03 kB
/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ import { Context } from '@nocobase/actions'; export declare class WorkflowValidationError extends Error { status: number; errors: Record<string, string>; constructor(errors: Record<string, string>); } export declare function create(context: Context, next: any): Promise<void>; export declare function update(context: Context, next: any): Promise<void>; export declare function destroy(context: Context, next: any): Promise<void>; export declare function revision(context: Context, next: any): Promise<void>; export declare function sync(context: Context, next: any): Promise<void>; /** * @deprecated * Keep for action trigger compatibility */ export declare function execute(context: Context, next: any): Promise<any>;