public interface Task
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachment(Attachment attachment)
Add an attachment.
NULL will be ignored and an attachment with the same ID will be replaced by the newer one. |
TaskSummary |
asSummary()
Return a summary of the current Task.
|
List<Attachment> |
getAttachments()
Return the attachments for this task.
|
String |
getBusinessProcessId()
Returns the businessProcessId of a task.
|
Map<String,String> |
getCallbackInfo()
Returns a Map of Callback info.
|
java.time.Instant |
getClaimed()
Returns the time when the task was set to
TaskState.CLAIMED by/to a user. |
String |
getClassificationCategory()
Returns the category of the current classification.
|
ClassificationSummary |
getClassificationSummary()
Returns the
ClassificationSummary of the task. |
java.time.Instant |
getCompleted()
Returns the time when the task was set into
TaskState.COMPLETED. |
java.time.Instant |
getCreated()
Returns the time when the task was
TaskState.READY. |
String |
getCreator()
Gets the UserId of the task-creator.
|
String |
getCustomAttribute(String num)
Return the value for custom Attribute number num.
|
Map<String,String> |
getCustomAttributes()
Returns a Map of custom Attributes.
|
String |
getDescription()
Return the task-description.
|
String |
getDomain()
Returns the Domain, to which the Task belongs at this moment.
|
java.time.Instant |
getDue()
Returns the time when this task should be finished.
|
String |
getId()
Returns the current id of the task.
|
java.time.Instant |
getModified()
Returns the time when the task was modified the last time.
|
String |
getName()
Return the name of the current task.
|
String |
getNote()
Returns the custom note for this Task.
|
String |
getOwner()
Return the id of the task-owner.
|
String |
getParentBusinessProcessId()
Returns the parentBusinessProcessId of a task.
|
java.time.Instant |
getPlanned()
Returns the time when the work on this task was planned to be started.
|
ObjectReference |
getPrimaryObjRef()
Returns the
primaryObjectReference of the task. |
int |
getPriority()
Returns the numeric priority of a task.
|
TaskState |
getState()
Returns the current
TaskState of the task. |
String |
getWorkbasketKey()
Returns the key of the Workbasket where the task is stored in.
|
WorkbasketSummary |
getWorkbasketSummary()
Returns the the Summary of the workbasket where the task is stored in.
|
boolean |
isRead()
Return the isRead-flag, which flags a task as viewed at least one time.
|
boolean |
isTransferred()
Return the isTransferred-flag, which flags a task as transfered into an other workbasket.
|
Attachment |
removeAttachment(String attachmentID)
Removes an attachment of the current task locally, when the ID is represented and does return the removed
attachment or null if there was no match.
The changed Task need to be updated calling the TaskService.updateTask(Task). |
void |
setBusinessProcessId(String businessProcessId)
Sets the external business process id.
|
void |
setCallbackInfo(Map<String,String> callbackInfo)
Sets a Map of callback info.
|
void |
setClassificationKey(String classificationKey)
Sets the Classification key that - together with the Domain from this task's work basket - selects the
appropriate
Classification for this task. |
void |
setCustomAttribute(String num,
String value)
Sets the value for custom Attribute number num.
|
void |
setCustomAttributes(Map<String,String> customAttributes)
Sets a Map of custom Attributes.
|
void |
setDescription(String description)
Sets the description of the task.
|
void |
setName(String name)
Sets the name of the current task.
|
void |
setNote(String note)
Sets/Changing the custom note for this Task.
|
void |
setOwner(String taskOwnerId)
Sets the ownerId of this task.
|
void |
setParentBusinessProcessId(String parentBusinessProcessId)
Sets the parent business process id to group associated processes.
|
void |
setPlanned(java.time.Instant planned)
Sets the time when the work on this task should be started.
|
void |
setPrimaryObjRef(ObjectReference primaryObjRef)
Sets the
primaryObjectReference of the task. |
String getId()
String getCreator()
java.time.Instant getCreated()
TaskState.READY.Instantjava.time.Instant getClaimed()
TaskState.CLAIMED by/to a user.Instantjava.time.Instant getCompleted()
TaskState.COMPLETED.Instantjava.time.Instant getModified()
Instantjava.time.Instant getPlanned()
Instantvoid setPlanned(java.time.Instant planned)
planned - as exact Instantjava.time.Instant getDue()
InstantString getName()
void setName(String name)
name - the name of the taskString getDescription()
void setDescription(String description)
description - the description of the taskint getPriority()
ClassificationSummary getClassificationSummary()
ClassificationSummary of the task.void setClassificationKey(String classificationKey)
Classification for this task.classificationKey - the classification key for the taskString getWorkbasketKey()
WorkbasketSummary getWorkbasketSummary()
String getDomain()
String getBusinessProcessId()
void setBusinessProcessId(String businessProcessId)
businessProcessId - Sets the business process id the task belongs to.String getParentBusinessProcessId()
void setParentBusinessProcessId(String parentBusinessProcessId)
parentBusinessProcessId - Sets the parent business process id the task belongs toString getOwner()
void setOwner(String taskOwnerId)
taskOwnerId - the user id of the task's ownerObjectReference getPrimaryObjRef()
primaryObjectReference of the task.void setPrimaryObjRef(ObjectReference primaryObjRef)
primaryObjectReference of the task.primaryObjRef - to task main-subjectboolean isRead()
boolean isTransferred()
Map<String,String> getCustomAttributes()
Mapvoid setCustomAttributes(Map<String,String> customAttributes)
customAttributes - a Map that contains the custom attributesMap<String,String> getCallbackInfo()
Mapvoid setCallbackInfo(Map<String,String> callbackInfo)
callbackInfo - a Map that contains the callback infoString getCustomAttribute(String num) throws InvalidArgumentException
num - identifies which custom attribute is requested. Taskana concatenates "custom_" with num and the
resulting String must match the name of the database column that contains the custom attribute. Valid
values are "1", "2" .. "16"InvalidArgumentException - if num has not a value of "1", "2" ... "16"void setCustomAttribute(String num, String value) throws InvalidArgumentException
num - identifies which custom attribute is to be set. Taskana concatenates "custom_" with num and the
resulting String must match the name of the database column that contains the custom attribute. Valid
values are "1", "2" .. "16"value - the value of the custom attribute to be setInvalidArgumentException - if num has not a value of "1", "2" ... "16"void addAttachment(Attachment attachment)
attachment - the attachment to be added to the taskList<Attachment> getAttachments()
list of attachments for this taskString getNote()
void setNote(String note)
note - the custom note for this Task.TaskSummary asSummary()
Attachment removeAttachment(String attachmentID)
TaskService.updateTask(Task).attachmentID - ID of the attachment which should be removed.String getClassificationCategory()
Copyright © 2018. All rights reserved.