UNPKG

@rudderstack/workflow-engine

Version:
23 lines 872 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StepExecutorFactory = void 0; const errors_1 = require("../errors"); const factory_1 = require("./base/factory"); const composed_1 = require("./composed"); class StepExecutorFactory { static async create(step, options) { try { let stepExecutor = await factory_1.BaseStepExecutorFactory.create(step, options); stepExecutor = await composed_1.ComposableExecutorFactory.create(stepExecutor, options); return stepExecutor; } catch (error) { if (error instanceof errors_1.StepCreationError) { throw error; } throw new errors_1.StepCreationError(error.message, step.name); } } } exports.StepExecutorFactory = StepExecutorFactory; //# sourceMappingURL=factory.js.map