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.

14 lines (13 loc) 592 B
import { Transactionable } from '@tego/server'; import type Plugin from '../Plugin'; import type { WorkflowModel } from '../types'; export declare abstract class Trigger { readonly workflow: Plugin; constructor(workflow: Plugin); abstract on(workflow: WorkflowModel): void; abstract off(workflow: WorkflowModel): void; validateEvent(workflow: WorkflowModel, context: any, options: Transactionable): boolean | Promise<boolean>; duplicateConfig?(workflow: WorkflowModel, options: Transactionable): object | Promise<object>; sync?: boolean; } export default Trigger;