Class Entries
java.lang.Object
ai.badmonkey.agentspaces.agent.Entries
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
-
of
-
of
-
toString
-