Notifications
Clients can optionally enable notifications for when files produced by SEPA CT are ready for consumption. When enabled, subscribe to the applicable Kafka topic (configurable as per below) to receive the following notifications generated by the SEPA CT STEP2 CSM service:
-
BulkFileReadyNotification
-
InboundValidationFailureNotification
Configuration
The following configuration property allows you to define the name of the Kafka topic the notifications are published to.
Config |
Type |
Default |
|
String |
|
|
Boolean |
|
BulkFileReadyNotifications
A BulkFileReadyNotification is generated when a bulk file has been written to the configured file system location and is ready for further processing by the Client.
Content
The BulkFileReadyNotification contents are:
| Field | Type | Comment |
|---|---|---|
|
String |
Canonical name of the notification class |
|
String |
Unique identifier for the bulk file |
|
java.time.Instant |
Timestamp when the notification was generated |
|
String |
Filename of the bulk file |
|
String |
Path to the bulk file |
|
List<String> |
A list of all the UnitOfWorkIds that were in the bulk |
|
String |
The processing entity associated with this bulk |
BulkFileReady Notification Scenarios
The following scenarios describe the conditions under which the system generates and sends a BulkFileReadyNotification to the configured Kafka topic.
As indicated in the table below, if a file is successfully produced but archiving fails, an error is logged in the application logs but a BulkFileReadyNotification is still sent as a failure to archive should not prevent processing by SEPA
|
| Bulk File Validation Outcome | Bulk File Archiving Outcome | BulkFileReadyNotification Sent |
|---|---|---|
Passed |
Passed |
Yes |
Passed |
Disabled |
Yes |
Disabled |
Passed |
Yes |
Disabled |
Disabled |
Yes |
Failed |
Will not be triggered due to file validation failure |
No |
Passed |
Failed |
Yes |
Disabled |
Failed |
Yes |
InboundValidationFailureNotification
A InboundValidationFailureNotification is generated when a failure has occurred during validation of the inbound message, for example a schema validation failure.
Content
The InboundValidationFailureNotification contents are:
| Field | Type | Comment |
|---|---|---|
|
String |
Canonical name of the notification class |
|
String |
Unique identifier for the bulk file |
|
java.time.Instant |
Timestamp when the notification was generated |
|
String |
The content of the message that was input to the inbound USM flow |
|
String |
The error message that caused the validation failure. |