Record Class TeamTask

java.lang.Object
java.lang.Record
io.agentscope.harness.agent.team.TeamTask

public record TeamTask(String taskId, String teamName, String namespace, String subject, String description, String state, String owner, List<String> blockedBy, String result, long version) extends Record
Shared team task board item.
  • Field Details

  • Constructor Details

    • TeamTask

      public TeamTask(String taskId, String teamName, String namespace, String subject, String description, String state, String owner, List<String> blockedBy, String result, long version)
      Creates an instance of a TeamTask record class.
      Parameters:
      taskId - the value for the taskId record component
      teamName - the value for the teamName record component
      namespace - the value for the namespace record component
      subject - the value for the subject record component
      description - the value for the description record component
      state - the value for the state record component
      owner - the value for the owner record component
      blockedBy - the value for the blockedBy record component
      result - the value for the result record component
      version - the value for the version record component
  • Method Details

    • isTerminal

      public static boolean isTerminal(String state)
      true when the state accepts no further transitions.
    • claimableOf

      public static List<TeamTask> claimableOf(List<TeamTask> tasks, String forMember)
      Unblocked pending tasks claimable by forMember: unassigned open-board items, and when forMember is non-blank also pending tasks assigned to that member.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • taskId

      public String taskId()
      Returns the value of the taskId record component.
      Returns:
      the value of the taskId record component
    • teamName

      public String teamName()
      Returns the value of the teamName record component.
      Returns:
      the value of the teamName record component
    • namespace

      public String namespace()
      Returns the value of the namespace record component.
      Returns:
      the value of the namespace record component
    • subject

      public String subject()
      Returns the value of the subject record component.
      Returns:
      the value of the subject record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • state

      public String state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • owner

      public String owner()
      Returns the value of the owner record component.
      Returns:
      the value of the owner record component
    • blockedBy

      public List<String> blockedBy()
      Returns the value of the blockedBy record component.
      Returns:
      the value of the blockedBy record component
    • result

      public String result()
      Returns the value of the result record component.
      Returns:
      the value of the result record component
    • version

      public long version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component