UNPKG

@rudderstack/workflow-engine

Version:
21 lines 761 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExternalWorkflowStepExecutor = void 0; const errors_1 = require("../../../../errors"); const base_1 = require("../../executors/base"); class ExternalWorkflowStepExecutor extends base_1.BaseStepExecutor { constructor(workflowEngine, step) { super(step); this.workflowEngine = workflowEngine; } async execute(input) { try { return await this.workflowEngine.execute(input); } catch (error) { throw errors_1.ErrorUtils.createStepExecutionError(error, this.getStepName()); } } } exports.ExternalWorkflowStepExecutor = ExternalWorkflowStepExecutor; //# sourceMappingURL=external_workflow.js.map