@tachybase/module-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) • 862 B
TypeScript
import { SchemaInitializerItemType } from '@tachybase/client';
import { ISchema } from '@tachybase/schema';
import { UseVariableOptions, VariableOption } from '../variable';
export declare abstract class Trigger {
sync: boolean;
title: string;
description?: string;
useVariables?(config: Record<string, any>, options?: UseVariableOptions): VariableOption[];
fieldset: {
[key: string]: ISchema;
};
view?: ISchema;
scope?: {
[key: string]: any;
};
components?: {
[key: string]: any;
};
useInitializers?(config: any): SchemaInitializerItemType | null;
initializers?: any;
isActionTriggerable?: boolean | ((config: object, context?: object) => boolean);
}
export declare const TriggerConfig: () => import("react/jsx-runtime").JSX.Element;
export declare function useTrigger(): Trigger;