Class UserNotificationEvent

java.lang.Object
ai.redouble.nucleo.events.AbstractJobEvent
ai.redouble.nucleo.events.UserNotificationEvent
All Implemented Interfaces:
NotificationEvent, HumanReadable, JobEvent, Serializable

public final class UserNotificationEvent extends AbstractJobEvent implements NotificationEvent, HumanReadable
An event for important notifications that require user attention. Unlike progress events, these are discrete messages about significant occurrences during job execution. The severity maps to a MsgType: an error is ERROR, a success COMPLETING, a warning or an info MESSAGE. The four factories read the job state off the snapshot and carry no structured details.

Examples of when to use UserNotificationEvent:

  • "Found potential duplicate records - review recommended"
  • "External service is slow, this may take longer than usual"
  • "Successfully validated all 500 records"
  • "Skipping 3 files due to unsupported format"
Since:
0.1 (2025-10-11)
Author:
Andrey Santrosyan
See Also: