Class DefaultApprovalNotifier

java.lang.Object
dev.agenor.core.hitl.DefaultApprovalNotifier
All Implemented Interfaces:
ApprovalNotifier

public final class DefaultApprovalNotifier extends Object implements ApprovalNotifier
Sentinel class used as the default value of RequiresApproval.notifier().

This class is never instantiated directly. When the runtime wiring encounters this sentinel it substitutes the concrete default implementation (LoggingApprovalNotifier) so that agenor-core has no dependency on agenor-runtime.

Since:
0.13.0
  • Method Details

    • notify

      public void notify(ApprovalRequest request)
      Description copied from interface: ApprovalNotifier
      Sends a notification that request is awaiting human approval.

      This method must not throw checked exceptions. Transient failures (network errors, timeouts) should be caught and logged internally.

      Specified by:
      notify in interface ApprovalNotifier
      Parameters:
      request - the pending approval request; never null