Class CapturingWorkflowEventLog

java.lang.Object
com.agentforge4j.testkit.capture.CapturingWorkflowEventLog
All Implemented Interfaces:
WorkflowEventLog

public final class CapturingWorkflowEventLog extends Object implements WorkflowEventLog
A WorkflowEventLog decorator that records every appended event in order while delegating to a backing log. All runtime events flow through WorkflowEventLog.append, so this captures the full ordered event stream for assertions.

The backing log is appended to first; the event is recorded only once that delegate call returns normally. A delegate that rejects an event therefore leaves it out of capturedEvents(), so the capture reflects only events the backing log actually accepted and never reports an event the runtime failed to persist.

  • Constructor Details

    • CapturingWorkflowEventLog

      public CapturingWorkflowEventLog(WorkflowEventLog delegate)
      Decorates the given backing log.
      Parameters:
      delegate - the backing event log; must not be null
  • Method Details