public class TaskImpl extends TaskSummaryImpl implements Task
attachmentSummaries, businessProcessId, claimed, classificationSummary, completed, created, creator, custom1, custom10, custom11, custom12, custom13, custom14, custom15, custom16, custom2, custom3, custom4, custom5, custom6, custom7, custom8, custom9, description, due, externalId, id, isRead, isTransferred, modified, name, note, owner, parentBusinessProcessId, planned, primaryObjRef, priority, state, workbasketSummaryCALLBACK_STATE| Constructor and Description |
|---|
TaskImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachment(Attachment attachmentToAdd)
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.
|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object obj) |
List<Attachment> |
getAttachments()
Return the attachments for this task.
|
Map<String,String> |
getCallbackInfo()
Returns a Map of Callback info.
|
CallbackState |
getCallbackState() |
String |
getClassificationCategory()
Returns the category of the current classification.
|
String |
getClassificationKey() |
Map<String,String> |
getCustomAttributes()
Returns a Map of custom Attributes.
|
String |
getWorkbasketKey()
Returns the key of the Workbasket where the task is stored in.
|
int |
hashCode() |
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 |
setAttachments(List<Attachment> attachments) |
void |
setCallbackInfo(Map<String,String> callbackInfo)
Sets a Map of callback info.
|
void |
setCallbackState(CallbackState callbackState) |
void |
setClassificationCategory(String classificationCategory) |
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 number,
String value)
Sets the value for custom Attribute number num.
|
void |
setCustomAttributes(Map<String,String> customAttributes)
Sets a Map of custom Attributes.
|
void |
setWorkbasketKey(String workbasketKey) |
String |
toString() |
addAttachmentSummary, getAttachmentSummaries, getBusinessProcessId, getClaimed, getClassificationSummary, getClassificationSummaryImpl, getCompleted, getCreated, getCreator, getCustom1, getCustom10, getCustom11, getCustom12, getCustom13, getCustom14, getCustom15, getCustom16, getCustom2, getCustom3, getCustom4, getCustom5, getCustom6, getCustom7, getCustom8, getCustom9, getCustomAttribute, getDescription, getDomain, getDue, getExternalId, getId, getModified, getName, getNote, getOwner, getParentBusinessProcessId, getPlanned, getPrimaryObjRef, getPriority, getState, getWorkbasketSummary, getWorkbasketSummaryImpl, isRead, isTransferred, setAttachmentSummaries, setBusinessProcessId, setClaimed, setClassificationSummary, setClassificationSummaryImpl, setCompleted, setCreated, setCreator, setCustom1, setCustom10, setCustom11, setCustom12, setCustom13, setCustom14, setCustom15, setCustom16, setCustom2, setCustom3, setCustom4, setCustom5, setCustom6, setCustom7, setCustom8, setCustom9, setDescription, setDomain, setDue, setExternalId, setId, setModified, setName, setNote, setOwner, setParentBusinessProcessId, setPlanned, setPrimaryObjRef, setPriority, setRead, setState, setTransferred, setWorkbasketSummary, setWorkbasketSummaryImplclone, finalize, getClass, notify, notifyAll, wait, wait, waitsetBusinessProcessId, setDescription, setDue, setExternalId, setName, setNote, setOwner, setParentBusinessProcessId, setPlanned, setPrimaryObjRefgetAttachmentSummaries, getBusinessProcessId, getClaimed, getClassificationSummary, getCompleted, getCreated, getCreator, getCustomAttribute, getDescription, getDomain, getDue, getExternalId, getId, getModified, getName, getNote, getOwner, getParentBusinessProcessId, getPlanned, getPrimaryObjRef, getPriority, getState, getWorkbasketSummary, isRead, isTransferredpublic CallbackState getCallbackState()
public void setCallbackState(CallbackState callbackState)
public String getClassificationKey()
public void setClassificationKey(String classificationKey)
TaskClassification for this task.setClassificationKey in interface TaskclassificationKey - the classification key for the taskpublic String getWorkbasketKey()
TaskgetWorkbasketKey in interface Taskpublic void setWorkbasketKey(String workbasketKey)
public Map<String,String> getCustomAttributes()
TaskgetCustomAttributes in interface TaskMappublic void setCustomAttributes(Map<String,String> customAttributes)
TasksetCustomAttributes in interface TaskcustomAttributes - a Map that contains the custom attributespublic Map<String,String> getCallbackInfo()
TaskgetCallbackInfo in interface TaskMappublic void setCallbackInfo(Map<String,String> callbackInfo)
TasksetCallbackInfo in interface TaskcallbackInfo - a Map that contains the callback infopublic void setCustomAttribute(String number, String value) throws InvalidArgumentException
TasksetCustomAttribute in interface Tasknumber - 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"public void addAttachment(Attachment attachmentToAdd)
TaskaddAttachment in interface TaskattachmentToAdd - the attachment to be added to the taskpublic List<Attachment> getAttachments()
TaskgetAttachments in interface Tasklist of attachments for this taskpublic TaskSummary asSummary()
Taskpublic Attachment removeAttachment(String attachmentId)
TaskTaskService.updateTask(Task).removeAttachment in interface TaskattachmentId - ID of the attachment which should be removed.public String getClassificationCategory()
TaskgetClassificationCategory in interface Taskpublic void setClassificationCategory(String classificationCategory)
public void setAttachments(List<Attachment> attachments)
protected boolean canEqual(Object other)
canEqual in class TaskSummaryImplpublic int hashCode()
hashCode in class TaskSummaryImplpublic boolean equals(Object obj)
equals in class TaskSummaryImplpublic String toString()
toString in class TaskSummaryImplCopyright © 2020. All rights reserved.