Package io.agentscope.harness.agent.team
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockedByrecord component.claimableOf(List<TeamTask> tasks, String forMember) Unblocked pending tasks claimable byforMember: unassigned open-board items, and whenforMemberis non-blank also pending tasks assigned to that member.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static booleanisTerminal(String state) truewhen the state accepts no further transitions.Returns the value of thenamespacerecord component.owner()Returns the value of theownerrecord component.result()Returns the value of theresultrecord component.state()Returns the value of thestaterecord component.subject()Returns the value of thesubjectrecord component.taskId()Returns the value of thetaskIdrecord component.teamName()Returns the value of theteamNamerecord component.final StringtoString()Returns a string representation of this record class.longversion()Returns the value of theversionrecord component.
-
Field Details
-
PENDING
- See Also:
-
IN_PROGRESS
- See Also:
-
COMPLETED
- See Also:
-
FAILED
- See Also:
-
-
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 aTeamTaskrecord class.- Parameters:
taskId- the value for thetaskIdrecord componentteamName- the value for theteamNamerecord componentnamespace- the value for thenamespacerecord componentsubject- the value for thesubjectrecord componentdescription- the value for thedescriptionrecord componentstate- the value for thestaterecord componentowner- the value for theownerrecord componentblockedBy- the value for theblockedByrecord componentresult- the value for theresultrecord componentversion- the value for theversionrecord component
-
-
Method Details
-
isTerminal
truewhen the state accepts no further transitions. -
claimableOf
Unblocked pending tasks claimable byforMember: unassigned open-board items, and whenforMemberis non-blank also pending tasks assigned to that member. -
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
taskId
Returns the value of thetaskIdrecord component.- Returns:
- the value of the
taskIdrecord component
-
teamName
Returns the value of theteamNamerecord component.- Returns:
- the value of the
teamNamerecord component
-
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
blockedBy
Returns the value of theblockedByrecord component.- Returns:
- the value of the
blockedByrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
version
public long version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-