@tachybase/module-workflow
Version:
A powerful BPM tool that provides foundational support for business automation, with the capability to extend unlimited triggers and nodes.
15 lines (14 loc) • 500 B
TypeScript
import { Transactionable } from '@tego/server';
import Trigger from '.';
import type { WorkflowModel } from '../types';
export interface CollectionChangeTriggerConfig {
collection: string;
mode: number;
condition: any;
}
export default class CollectionTrigger extends Trigger {
events: Map<any, any>;
on(workflow: WorkflowModel): void;
off(workflow: WorkflowModel): void;
validateEvent(workflow: WorkflowModel, context: any, options: Transactionable): Promise<boolean>;
}