@jss-rule-engine/workflow
Version:
14 lines (13 loc) • 635 B
TypeScript
import { WorkflowAction, WorkflowExecutionContext } from "./workflowTypes";
export interface IWorkflowAction {
execute(action: WorkflowAction, context: WorkflowExecutionContext): Promise<void>;
}
export interface IWorkflowActionFactory {
registerAction(templateId: string, action: new () => IWorkflowAction): void;
getAction(templateId: string): IWorkflowAction;
}
export declare class WorkflowActionFactory implements IWorkflowActionFactory {
private registeredActions;
registerAction(templateId: string, action: new () => IWorkflowAction): void;
getAction(templateId: string): IWorkflowAction;
}