@rudderstack/workflow-engine
Version:
A generic workflow execution engine
20 lines • 868 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DebuggableStepExecutor = void 0;
const common_1 = require("../../../common");
const composable_1 = require("./composable");
/**
* DebuggableStepExecutor logs the input and output of step and also
* helps to set break points for debugging.
*/
class DebuggableStepExecutor extends composable_1.ComposableStepExecutor {
async execute(input, executionBindings) {
common_1.logger.mustLog('input = ', JSON.stringify(input));
common_1.logger.mustLog('bindings = ', JSON.stringify(executionBindings));
const output = await super.execute(input, executionBindings);
common_1.logger.mustLog('output = ', JSON.stringify(output));
return output;
}
}
exports.DebuggableStepExecutor = DebuggableStepExecutor;
//# sourceMappingURL=debuggable.js.map