Package pro.taskana.task.api.models
Interface TaskSummary
- All Known Subinterfaces:
Task
- All Known Implementing Classes:
TaskImpl,TaskSummaryImpl
public interface TaskSummary
Interface for TaskSummary. This is a specific short model-object which only contains the most
important information.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSecondaryObjectReference(String company, String system, String systemInstance, String type, String value) Add an ObjectReference to the List of secondary ObjectReferences.
NULL will be ignored and an ObjectReference with the same id will be replaced by the newer one.voidaddSecondaryObjectReference(ObjectReference objectReference) Add an ObjectReference to the List of secondary objectReferences.
NULL will be ignored and an ObjectReference with the same id will be replaced by the newer one.copy()Duplicates this TaskSummary without the internal and external id.Returns the attachmentSummaries of the Task.Returns the businessProcessId of the Task.Returns the time when the Task was claimed.Returns the ClassificationSummary of the Task.Returns the time when the Task was completed.Returns the time when the Task was created.Returns the name of the creator of the Task.getCustomAttribute(TaskCustomField customField) Deprecated.Use getCustomField(TaskCustomField) insteadgetCustomField(TaskCustomField customField) Returns the value of the specified TaskCustomField of the Task.getCustomIntField(TaskCustomIntField customIntField) Returns the value of the specified TaskCustomIntField of the Task.Returns the description of the Task.Returns the domain of the Task.getDue()Returns the time when the Task is due.Returns the externalId of the Task.getId()Returns the id of the Task.intGets the manualPriority of the Task.Returns the time when the Task was last modified.getName()Returns the name of the Task.getNote()Returns the note attached to the Task.intReturns the count of the comments of the Task.getOwner()Returns the owner of the Task.Returns long name of the owner of the Task.Returns the parentBusinessProcessId of the Task.Returns the time when the Task is planned to be executed.Returns the primary ObjectReference of the Task.intReturns the priority of the Task.Returns the time when the surrounding process was started.Returns the secondaryObjectReferences of the Task.getState()Returns the state of the Task.Returns the WorkbasketSummary of the Task.booleanReturns whether the Task is prioritized manually.booleanisRead()Returns the isRead flag of the Task.booleanReturns the isTransferred flag of the Task.removeSecondaryObjectReference(String objectReferenceID) Removes a secondary ObjectReference of the current Task locally, when the ID is represented and does return the removed ObjectReference or null if there was no match.
-
Field Details
-
DEFAULT_MANUAL_PRIORITY
static final int DEFAULT_MANUAL_PRIORITY- See Also:
-
-
Method Details
-
getId
String getId()Returns the id of the Task.- Returns:
- taskId
-
getExternalId
String getExternalId()Returns the externalId of the Task.- Returns:
- externalId
-
getCreator
String getCreator()Returns the name of the creator of the Task.- Returns:
- creator
-
getCreated
Instant getCreated()Returns the time when the Task was created.- Returns:
- the created Instant
-
getClaimed
Instant getClaimed()Returns the time when the Task was claimed.- Returns:
- the claimed Instant
-
getCompleted
Instant getCompleted()Returns the time when the Task was completed.- Returns:
- the completed Instant
-
getModified
Instant getModified()Returns the time when the Task was last modified.- Returns:
- the last modified Instant
-
getPlanned
Instant getPlanned()Returns the time when the Task is planned to be executed.- Returns:
- the planned Instant
-
getReceived
Instant getReceived()Returns the time when the surrounding process was started.- Returns:
- the received Instant
-
getGroupByCount
Integer getGroupByCount()Returns the number of Tasks that are grouped together with this Task by a TaskQuery. It's only not NULL when using TaskQuery.groupByPor() or TaskQuery.groupBySor(String). -
getDue
Instant getDue()Returns the time when the Task is due.This instant denotes the last point in the allowed work time has ended or in short it is inclusive.
- Returns:
- the due Instant
-
getName
String getName()Returns the name of the Task.- Returns:
- name
-
getNote
String getNote()Returns the note attached to the Task.- Returns:
- note
-
getDescription
String getDescription()Returns the description of the Task.- Returns:
- description
-
getPriority
int getPriority()Returns the priority of the Task.- Returns:
- priority
-
getManualPriority
int getManualPriority()Gets the manualPriority of the Task. If the value of manualPriority is zero or greater, the priority is automatically set to manualPriority. In this case, all computations of priority are disabled. If the value of manualPriority is negative, Tasks are not prioritized manually.- Returns:
- the manualPriority of the Task
-
getState
TaskState getState()Returns the state of the Task.- Returns:
- state
-
getClassificationSummary
ClassificationSummary getClassificationSummary()Returns the ClassificationSummary of the Task.- Returns:
- ClassificationSummary
-
getWorkbasketSummary
WorkbasketSummary getWorkbasketSummary()Returns the WorkbasketSummary of the Task.- Returns:
- WorkbasketSummary
-
getAttachmentSummaries
List<AttachmentSummary> getAttachmentSummaries()Returns the attachmentSummaries of the Task.- Returns:
- attachmentSummaries
-
getSecondaryObjectReferences
List<ObjectReference> getSecondaryObjectReferences()Returns the secondaryObjectReferences of the Task.- Returns:
- secondaryObjectReferences
-
addSecondaryObjectReference
Add an ObjectReference to the List of secondary objectReferences.
NULL will be ignored and an ObjectReference with the same id will be replaced by the newer one.- Parameters:
objectReference- the secondary objectReference to be added to the Task
-
addSecondaryObjectReference
void addSecondaryObjectReference(String company, String system, String systemInstance, String type, String value) Add an ObjectReference to the List of secondary ObjectReferences.
NULL will be ignored and an ObjectReference with the same id will be replaced by the newer one.- Parameters:
company- of the objectReference to be added to the Tasksystem- of the objectReference to be added to the TasksystemInstance- of the objectReference to be added to the Tasktype- of the objectReference to be added to the Taskvalue- of the objectReference to be added to the Task
-
removeSecondaryObjectReference
Removes a secondary ObjectReference of the current Task locally, when the ID is represented and does return the removed ObjectReference or null if there was no match.
The changed Task need to be updated calling the TaskService.updateTask(Task).- Parameters:
objectReferenceID- id of the ObjectReference which should be removed- Returns:
- the ObjectReference which will be removed after updating or null if there was no matching ObjectReference
-
getDomain
String getDomain()Returns the domain of the Task.- Returns:
- domain
-
getBusinessProcessId
String getBusinessProcessId()Returns the businessProcessId of the Task.- Returns:
- businessProcessId
-
getParentBusinessProcessId
String getParentBusinessProcessId()Returns the parentBusinessProcessId of the Task.- Returns:
- parentBusinessProcessId
-
getOwner
String getOwner()Returns the owner of the Task.- Returns:
- owner
-
getOwnerLongName
String getOwnerLongName()Returns long name of the owner of the Task.- Returns:
- the long name of the owner
-
getPrimaryObjRef
ObjectReference getPrimaryObjRef()Returns the primary ObjectReference of the Task.- Returns:
- the Tasks primary ObjectReference
-
isRead
boolean isRead()Returns the isRead flag of the Task.- Returns:
- the Tasks isRead flag
-
isTransferred
boolean isTransferred()Returns the isTransferred flag of the Task.- Returns:
- the Tasks isTransferred flag
-
isManualPriorityActive
boolean isManualPriorityActive()Returns whether the Task is prioritized manually. That means that the priority is set to the value of the manualPriority of the Task.- Returns:
- true, if Tasks are prioritized manually; false otherwise
-
getNumberOfComments
int getNumberOfComments()Returns the count of the comments of the Task.- Returns:
- numberOfComments
-
getCustomAttribute
Deprecated.Use getCustomField(TaskCustomField) insteadReturns the value of the specified TaskCustomField of the Task.- Parameters:
customField- identifies which TaskCustomField is requested- Returns:
- the value for the given customField
-
getCustomField
Returns the value of the specified TaskCustomField of the Task.- Parameters:
customField- identifies which TaskCustomField is requested- Returns:
- the value for the given TaskCustomField
-
getCustomIntField
Returns the value of the specified TaskCustomIntField of the Task.- Parameters:
customIntField- identifies which TaskCustomIntField is requested- Returns:
- the value for the given TaskCustomIntField
-
copy
TaskSummary copy()Duplicates this TaskSummary without the internal and external id.- Returns:
- a copy of this TaskSummary
-