UNPKG

@liyown/flow-engine

Version:

一个基于JavaScript的无状态工作流引擎框架,支持可视化拖拽、DSL定义、断点继续、自动重试等高级功能

16 lines (15 loc) 862 B
import { ExecutionContextRuntime } from "../types/index.js"; /** * 数据映射器 */ export declare class DataMapper { static mapInput(data: Record<string, any>, mapping: Record<string, any>, context: ExecutionContextRuntime): Record<string, any>; static evaluateExpression(expression: any, scope: Record<string, any>): any; static evaluateJSONPath(path: string, scope: Record<string, any>): any; static evaluateComplexExpression(expr: Record<string, any>, scope: Record<string, any>): any; static evaluateTemplate(template: string, scope: Record<string, any>): string; static evaluateFunction(funcName: string, args: any[], scope: Record<string, any>): any; static getNestedValue(obj: Record<string, any>, path: string): any; static mapToObject<T>(map: Map<string, T>): Record<string, T>; static generateUUID(): string; }