@cap-js-community/sap-afc-sdk
Version:
SAP Advanced Financial Closing SDK for CDS
37 lines (28 loc) • 835 B
JavaScript
import sdk from "@cap-js-community/sap-afc-sdk";
const { SchedulingProcessingService } = sdk;
export default class CustomSchedulingProcessingService extends SchedulingProcessingService {
async init() {
const { processJob, updateJob, cancelJob, syncJob, notify } = this.operations;
this.on(processJob, async (req, next) => {
// Your logic goes here
await next();
});
this.on(updateJob, async (req, next) => {
// Your logic goes here
await next();
});
this.on(cancelJob, async (req, next) => {
// Your logic goes here
await next();
});
this.on(syncJob, async (req, next) => {
// Your logic goes here
await next();
});
this.on(notify, async (req, next) => {
// Your logic goes here
await next();
});
super.init();
}
}