This is just a quick note about a discovery I made in capire. SAP CAP (Node.js) will support task scheduling (including callbacks) for events (actions/functions are also events) in a future release. The feature is currently still in alpha state, so it may change.
The capire release notes for May 2025 mention one feature that I personally think could be extremely valuable in the future: event/task scheduling. See this section in capire for all the details. This is what it (currently) looks like:
await this.schedule("someEvent").every("2s")
this.after("someEvent/#succeeded", (data, req) => {
// do something
console.log(data)
})This means you can set up you CAP applications to do things on a certain schedule, similar to a job scheduler. The application can emit events, or call actions/functions on its own without requiring another application or user to trigger it. I personally think this is a great addition to CAP and potentially very useful - especially if the think about AI agents that do things on their own, on a predefined schedule. This feature could be a starting point and building block for this.
Bold hypothesis: We might see CAP as the implementation foundation for (code-based) AI agents in the SAP ecosystem in the future. CAP is great for consuming (connecting) SAP systems and adding custom logic (code) to these connections. Time will tell.
Give it a try and let me know what you think! Keep in mind that this feature is still in alpha state and may change any time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.