Class A2aSkillOutcome

java.lang.Object
com.xebialabs.xlrelease.a2a.server.A2aSkillOutcome

public final class A2aSkillOutcome extends Object
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 Details

    • text

      public static A2aSkillOutcome text(String artifactText)
      An immediately-complete result: the text becomes the completed task's artifact.
    • release

      public static A2aSkillOutcome release(String releaseId)
      Long-running work delegated to a release: the release's live state is the A2A task.
    • isReleaseBacked

      public boolean isReleaseBacked()
    • getArtifactText

      public String getArtifactText()
      The artifact text; null when isReleaseBacked().
    • getReleaseId

      public String getReleaseId()
      The backing release id; null unless isReleaseBacked().