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.
|
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 |
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,String> |
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 |
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 |
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,String> customAttributes)
Sets a collection of customAttributes.
|
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 |
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()
String getParentBusinessProcessId()
String 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 attributesString getCustom1()
void setCustom1(String custom1)
custom1 - the custom1 property of the taskString getCustom2()
void setCustom2(String custom2)
custom2 - the custom2 property of the taskString getCustom3()
void setCustom3(String custom3)
custom3 - the custom3 property of the taskString getCustom4()
void setCustom4(String custom4)
custom4 - the custom4 property of the taskString getCustom5()
void setCustom5(String custom5)
custom5 - the custom5 property of the taskString getCustom6()
void setCustom6(String custom6)
custom6 - the custom6 property of the taskString getCustom7()
void setCustom7(String custom7)
custom7 - the custom7 property of the taskString getCustom8()
void setCustom8(String custom8)
custom8 - the custom8 property of the taskString getCustom9()
void setCustom9(String custom9)
custom9 - the custom9 property of the taskString getCustom10()
void setCustom10(String custom10)
custom10 - the custom10 property of the taskvoid 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.