Class A2aSkillOutcome
java.lang.Object
com.xebialabs.xlrelease.a2a.server.A2aSkillOutcome
What a skill produced: either an immediate text artifact (the Phase-0 shape — the A2A task is
complete the moment the skill returns), or a release the skill started, whose live
state IS the A2A task from then on.
Release-backed outcomes are the Phase-1 mapping: the A2A task id is the release id, so
tracking needs no correlation store, survives restarts by construction, and GetTask
always answers from live release state — including TASK_STATE_INPUT_REQUIRED while a
gate or manual task waits on a human. Exactly one of the two members is set.
-
Method Summary
Modifier and TypeMethodDescriptionThe artifact text;nullwhenisReleaseBacked().The backing release id;nullunlessisReleaseBacked().booleanstatic A2aSkillOutcomeLong-running work delegated to a release: the release's live state is the A2A task.static A2aSkillOutcomeAn immediately-complete result: the text becomes the completed task's artifact.
-
Method Details
-
text
An immediately-complete result: the text becomes the completed task's artifact. -
release
Long-running work delegated to a release: the release's live state is the A2A task. -
isReleaseBacked
public boolean isReleaseBacked() -
getArtifactText
The artifact text;nullwhenisReleaseBacked(). -
getReleaseId
The backing release id;nullunlessisReleaseBacked().
-