| 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.
|
List<Attachment> |
getAttachments()
Return the attachments for this task.
|
String |
getBusinessProcessId()
Returns the businessProcessId of a task.
|
java.time.Instant |
getClaimed()
Returns the time when the task was set to
TaskState.CLAIMED by/to a user. |
String |
getClassificationKey() |
ClassificationSummary |
getClassificationSummary()
Returns the
ClassificationSummary of the task. |
ClassificationSummaryImpl |
getClassificationSummaryImpl() |
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 |
getCustom1()
Return the value for the 1.
|
String |
getCustom10()
Return the value for the 10.
|
String |
getCustom2()
Return the value for the 2.
|
String |
getCustom3()
Return the value for the 3.
|
String |
getCustom4()
Return the value for the 4.
|
String |
getCustom5()
Return the value for the 5.
|
String |
getCustom6()
Return the value for the 6.
|
String |
getCustom7()
Return the value for the 7.
|
String |
getCustom8()
Return the value for the 8.
|
String |
getCustom9()
Return the value for the 9.
|
Map<String,Object> |
getCustomAttributes()
Returns a collection of customAttributes with a max.
|
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 |
setAttachments(List<Attachment> attachments) |
void |
setBusinessProcessId(String businessProcessId) |
void |
setClaimed(java.time.Instant claimed) |
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 |
setClassificationSummary(ClassificationSummary classificationSummary) |
void |
setClassificationSummaryImpl(ClassificationSummaryImpl classificationSummary) |
void |
setCompleted(java.time.Instant completed) |
void |
setCreated(java.time.Instant created) |
void |
setCustom1(String custom1)
Sets the value for customAttribute1.
|
void |
setCustom10(String custom10)
Sets the value for customAttribute10.
|
void |
setCustom2(String custom2)
Sets the value for customAttribute2.
|
void |
setCustom3(String custom3)
Sets the value for customAttribute3.
|
void |
setCustom4(String custom4)
Sets the value for customAttribute4.
|
void |
setCustom5(String custom5)
Sets the value for customAttribute25.
|
void |
setCustom6(String custom6)
Sets the value for customAttribute6.
|
void |
setCustom7(String custom7)
Sets the value for customAttribute7.
|
void |
setCustom8(String custom8)
Sets the value for customAttribute8.
|
void |
setCustom9(String custom9)
Sets the value for customAttribute9.
|
void |
setCustomAttributes(Map<String,Object> customAttributes) |
void |
setDescription(String description)
Sets the description of the task.
|
void |
setDomain(String domain) |
void |
setDue(java.time.Instant due) |
void |
setId(String id) |
void |
setModified(java.time.Instant modified) |
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 owner)
Sets the ownerId of this task.
|
void |
setParentBusinessProcessId(String parentBusinessProcessId) |
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. |
void |
setPriority(int priority) |
void |
setRead(boolean isRead) |
void |
setState(TaskState state) |
void |
setTransferred(boolean isTransferred) |
void |
setWorkbasketKey(String workbasketKey) |
void |
setWorkbasketSummary(WorkbasketSummary workbasket) |
String |
toString() |
public String getId()
Taskpublic void setId(String id)
public java.time.Instant getCreated()
TaskTaskState.READY.getCreated in interface TaskInstantpublic void setCreated(java.time.Instant created)
public java.time.Instant getClaimed()
TaskTaskState.CLAIMED by/to a user.getClaimed in interface TaskInstantpublic void setClaimed(java.time.Instant claimed)
public java.time.Instant getCompleted()
TaskTaskState.COMPLETED.getCompleted in interface TaskInstantpublic void setCompleted(java.time.Instant completed)
public java.time.Instant getModified()
TaskgetModified in interface TaskInstantpublic void setModified(java.time.Instant modified)
public java.time.Instant getPlanned()
TaskgetPlanned in interface TaskInstantpublic void setPlanned(java.time.Instant planned)
TasksetPlanned in interface Taskplanned - as exact Instantpublic java.time.Instant getDue()
Taskpublic void setDue(java.time.Instant due)
public String getName()
Taskpublic void setName(String name)
Taskpublic String getDescription()
TaskgetDescription in interface Taskpublic void setDescription(String description)
TasksetDescription in interface Taskdescription - the description of the taskpublic String getNote()
Taskpublic void setNote(String note)
Taskpublic int getPriority()
TaskgetPriority in interface Taskpublic void setPriority(int priority)
public TaskState getState()
TaskTaskState of the task.public void setState(TaskState state)
public ClassificationSummary getClassificationSummary()
TaskClassificationSummary of the task.getClassificationSummary in interface Taskpublic 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 WorkbasketSummary getWorkbasketSummary()
TaskgetWorkbasketSummary in interface Taskpublic void setWorkbasketSummary(WorkbasketSummary workbasket)
public String getDomain()
Taskpublic void setDomain(String domain)
public String getBusinessProcessId()
TaskgetBusinessProcessId in interface Taskpublic void setBusinessProcessId(String businessProcessId)
public String getParentBusinessProcessId()
TaskgetParentBusinessProcessId in interface Taskpublic void setParentBusinessProcessId(String parentBusinessProcessId)
public String getOwner()
Taskpublic void setOwner(String owner)
Taskpublic ObjectReference getPrimaryObjRef()
TaskprimaryObjectReference of the task.getPrimaryObjRef in interface Taskpublic void setPrimaryObjRef(ObjectReference primaryObjRef)
TaskprimaryObjectReference of the task.setPrimaryObjRef in interface TaskprimaryObjRef - to task main-subjectpublic boolean isRead()
Taskpublic void setRead(boolean isRead)
public boolean isTransferred()
TaskisTransferred in interface Taskpublic void setTransferred(boolean isTransferred)
public Map<String,Object> getCustomAttributes()
TaskgetCustomAttributes in interface TaskMappublic String getCustom1()
TaskgetCustom1 in interface Taskpublic void setCustom1(String custom1)
TasksetCustom1 in interface Taskcustom1 - the custom1 property of the taskpublic String getCustom2()
TaskgetCustom2 in interface Taskpublic void setCustom2(String custom2)
TasksetCustom2 in interface Taskcustom2 - the custom2 property of the taskpublic String getCustom3()
TaskgetCustom3 in interface Taskpublic void setCustom3(String custom3)
TasksetCustom3 in interface Taskcustom3 - the custom3 property of the taskpublic String getCustom4()
TaskgetCustom4 in interface Taskpublic void setCustom4(String custom4)
TasksetCustom4 in interface Taskcustom4 - the custom4 property of the taskpublic String getCustom5()
TaskgetCustom5 in interface Taskpublic void setCustom5(String custom5)
TasksetCustom5 in interface Taskcustom5 - the custom5 property of the taskpublic String getCustom6()
TaskgetCustom6 in interface Taskpublic void setCustom6(String custom6)
TasksetCustom6 in interface Taskcustom6 - the custom6 property of the taskpublic String getCustom7()
TaskgetCustom7 in interface Taskpublic void setCustom7(String custom7)
TasksetCustom7 in interface Taskcustom7 - the custom7 property of the taskpublic String getCustom8()
TaskgetCustom8 in interface Taskpublic void setCustom8(String custom8)
TasksetCustom8 in interface Taskcustom8 - the custom8 property of the taskpublic String getCustom9()
TaskgetCustom9 in interface Taskpublic void setCustom9(String custom9)
TasksetCustom9 in interface Taskcustom9 - the custom9 property of the taskpublic String getCustom10()
TaskgetCustom10 in interface Taskpublic void setCustom10(String custom10)
TasksetCustom10 in interface Taskcustom10 - the custom10 property of the taskpublic 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 void setAttachments(List<Attachment> attachments)
public String getClassificationKey()
public void setClassificationSummary(ClassificationSummary classificationSummary)
public ClassificationSummaryImpl getClassificationSummaryImpl()
public void setClassificationSummaryImpl(ClassificationSummaryImpl classificationSummary)
public Attachment removeAttachment(String attachmentId)
TaskTaskService.updateTask(Task).removeAttachment in interface TaskattachmentId - ID of the attachment which should be removed.Copyright © 2018. All rights reserved.