Class AgentRuleRunStore

java.lang.Object
com.xebialabs.xlrelease.agentrules.AgentRuleRunStore

public class AgentRuleRunStore extends Object
Recent agent-rule runs, newest first, for the run-history view.

Deliberately in-memory and bounded for this phase: a run record is operational visibility, not audit truth (the audit trail is the activity log and task comments, which are persisted). Restart loses the window; the durable transcript store arrives with the assistant-side headless-run API, which persists runs at the source.

  • Constructor Details

    • AgentRuleRunStore

      public AgentRuleRunStore()
  • Method Details

    • add

      public void add(AgentRuleRun run)
    • update

      public void update(AgentRuleRun run)
      Replaces the run with the same id (a run moving to a terminal status). No-op if evicted.
    • list

      public List<AgentRuleRun> list(String ruleId, String releaseId, int limit)
      Newest-first window, optionally filtered.
      Parameters:
      ruleId - only runs of this rule, or null for all
      releaseId - only runs on this release, or null for all
      limit - maximum entries returned; values outside 1..500 are clamped