Class Entries

java.lang.Object
ai.badmonkey.agentspaces.agent.Entries

public final class Entries extends Object
Several returns from one bound method: the fork (SPEC ยง10.3, ISSUE-WorkflowVerbs). The binder dispatches each element as if the method had returned it alone (an entry, a Tagged entry, a Contribution, a Motion), in order, after completing a taken entry once. A fork from a take is not atomic: a crash between two elements leaves the first written and the task reappearing, so forked entries carry the input's id and a stage downstream dedups on it. null elements are refused.
@SpaceNotify(space = "assessment", produces = {QuoteRequest.class, QuoteTask.class})
public Entries fork(ClaimAssessment a) {
    return Entries.of(new QuoteRequest(a.claimId(), 3),
            new QuoteTask(a.claimId(), "north"), new QuoteTask(a.claimId(), "east"),
            new QuoteTask(a.claimId(), "south"));
}
  • Method Details

    • elements

      public List<Object> elements()
      The elements, in the order they are dispatched.
    • of

      public static Entries of(Object... elements)
      A fork of the given returns; an empty fork writes nothing.
    • of

      public static Entries of(List<?> elements)
      A fork of the given returns; an empty fork writes nothing.
    • toString

      public String toString()
      Overrides:
      toString in class Object