@tachybase/module-workflow
Version:
A powerful BPM tool that provides foundational support for business automation, with the capability to extend unlimited triggers and nodes.
18 lines (17 loc) • 490 B
TypeScript
import { Instruction } from '.';
import type Processor from '../Processor';
import type { FlowNodeModel } from '../types';
export interface CalculationConfig {
engine?: string;
expression?: string;
}
export declare class CalculationInstruction extends Instruction {
run(node: FlowNodeModel, prevJob: any, processor: Processor): Promise<{
result: any;
status: 1;
} | {
result: any;
status: -2;
}>;
}
export default CalculationInstruction;