@rudderstack/workflow-engine
Version:
A generic workflow execution engine
21 lines • 761 B
JavaScript
;
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