Package org.flowable.task.api
Interface TaskBuilder
public interface TaskBuilder
Wraps
TaskInfo
to the builder.-
Method Summary
Modifier and TypeMethodDescriptionThe userId of the person to which this task is delegated.Change the category of the task.create()
Creates task instance according values set in the builderdescription
(String description) Free text description of the task.Change due date of the task.Change the form key of the taskgetId()
Set<? extends org.flowable.identitylink.api.IdentityLinkInfo>
getName()
getOwner()
int
DB id of the task.identityLinks
(Set<? extends org.flowable.identitylink.api.IdentityLinkInfo> identityLinks) add identity links to the taskName or title of the task.The userId of the person that is responsible for this task.parentTaskId
(String parentTaskId) the parent task for which this task is a subtaskpriority
(int priority) Indication of how important/urgent this task isadd task scopeIdAdd scope typetaskDefinitionId
(String taskDefinitionId) task definition id to create task fromtaskDefinitionKey
(String taskDefinitionKey) task definition key to create task fromChange the tenantId of the task
-
Method Details
-
create
Task create()Creates task instance according values set in the builder- Returns:
- task instance
-
id
DB id of the task. -
getId
String getId() -
name
Name or title of the task. -
getName
String getName() -
description
Free text description of the task. -
getDescription
String getDescription() -
priority
Indication of how important/urgent this task is -
getPriority
int getPriority() -
owner
The userId of the person that is responsible for this task. -
getOwner
String getOwner() -
assignee
The userId of the person to which this task is delegated. -
getAssignee
String getAssignee() -
dueDate
Change due date of the task. -
getDueDate
Date getDueDate() -
category
Change the category of the task. This is an optional field and allows to 'tag' tasks as belonging to a certain category. -
getCategory
String getCategory() -
parentTaskId
the parent task for which this task is a subtask -
getParentTaskId
String getParentTaskId() -
tenantId
Change the tenantId of the task -
getTenantId
String getTenantId() -
formKey
Change the form key of the task -
getFormKey
String getFormKey() -
taskDefinitionId
task definition id to create task from -
getTaskDefinitionId
String getTaskDefinitionId() -
taskDefinitionKey
task definition key to create task from -
getTaskDefinitionKey
String getTaskDefinitionKey() -
identityLinks
TaskBuilder identityLinks(Set<? extends org.flowable.identitylink.api.IdentityLinkInfo> identityLinks) add identity links to the task -
getIdentityLinks
Set<? extends org.flowable.identitylink.api.IdentityLinkInfo> getIdentityLinks() -
scopeId
add task scopeId -
getScopeId
String getScopeId() -
scopeType
Add scope type -
getScopeType
String getScopeType()
-