public interface Task extends TaskSummary
| Modifier and Type | Field and Description |
|---|---|
static String |
CALLBACK_STATE
The key that is used to supply Callback_state within the CallbackInfo map.
|
| 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.
|
Map<String,String> |
getCallbackInfo()
Returns a Map of Callback info.
|
String |
getClassificationCategory()
Returns the category of the current classification.
|
Map<String,String> |
getCustomAttributes()
Returns a Map of custom Attributes.
|
String |
getWorkbasketKey()
Returns the key of the Workbasket where the task is stored in.
|
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 |
setDue(Instant due)
Sets the time when the work on this task should be finished.
|
void |
setExternalId(String externalId)
Sets the external Id.
|
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(Instant planned)
Sets the time when the work on this task should be started.
|
void |
setPrimaryObjRef(ObjectReference primaryObjRef)
Sets the
primaryObjectReference of the task. |
getAttachmentSummaries, getBusinessProcessId, getClaimed, getClassificationSummary, getCompleted, getCreated, getCreator, getCustomAttribute, getDescription, getDomain, getDue, getExternalId, getId, getModified, getName, getNote, getOwner, getParentBusinessProcessId, getPlanned, getPrimaryObjRef, getPriority, getState, getWorkbasketSummary, isRead, isTransferredstatic final String CALLBACK_STATE
void setExternalId(String externalId)
externalId - the external Idvoid setPlanned(Instant planned)
planned - as exact Instantvoid setDue(Instant due)
due - as exact Instantvoid setName(String name)
name - the name of the taskvoid setDescription(String description)
description - the description of the taskvoid setClassificationKey(String classificationKey)
Classification for this task.classificationKey - the classification key for the taskString getWorkbasketKey()
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 infovoid 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 taskvoid setBusinessProcessId(String businessProcessId)
businessProcessId - Sets the business process id the task belongs to.void setParentBusinessProcessId(String parentBusinessProcessId)
parentBusinessProcessId - Sets the parent business process id the task belongs tovoid setOwner(String taskOwnerId)
taskOwnerId - the user id of the task's ownervoid setPrimaryObjRef(ObjectReference primaryObjRef)
primaryObjectReference of the task.primaryObjRef - to task main-subjectvoid 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 © 2020. All rights reserved.