Skip to content

Commit 10006b8

Browse files
committed
Update features for notifications plugin
1 parent 26af6b2 commit 10006b8

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

plugins/index.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ Available for:
313313
## Notifications
314314

315315

316-
The Notifications plugin provides support for publishing business notifications in SAP Build Work Zone. Notification types are defined by annotating CDS events, which the plugin then intercepts and forwards automatically:
316+
The Notifications plugin provides support for sending emails and publishing business notifications in SAP Build Work Zone. Define notification types declaratively via `@notification` CDS annotations or JSON config — the plugin intercepts annotated events and forwards them automatically:
317317

318318
```cds
319319
@notification: {
@@ -382,17 +382,18 @@ service IncidentService {
382382
Features:
383383

384384
- CAP service-based API — simple, backend-agnostic
385-
- Notification types defined via CDS @notification annotations
386-
- Notification types defined via JSON (Node.js only)
385+
- Notification types defined via CDS `@notification` annotations`cds build` compiles them to `notification-types.json`
386+
- Notification types defined via JSON config
387387
- Auto-emit: annotated CDS events are forwarded to ANS automatically
388-
- Email delivery via configurable delivery channels
388+
- **Email delivery** via `@notification.email.subject` and `@notification.email.html` annotations with Mustache syntax
389389
- Email HTML templates for rich email notifications
390-
- Batch notifications — emit multiple notifications in a single call
391-
- i18n support and dynamic priority for notification types
390+
- **Batch notifications** — send multiple notifications in a single outbox event
391+
- **i18n support** via `{i18n>key}` syntax in annotations
392+
- **Dynamic priority** via `@notification.priority` with runtime expressions
392393
- Console logging in development — no external service needed
393394
- Transactional outbox — maximized scalability and resilience
394395
- Automatic registration and lifecycle management of notification types on startup
395-
396+
- Optional database storage for sent notifications with cooldown to prevent duplicate delivery (Java)
396397

397398
Available for:
398399

0 commit comments

Comments
 (0)