Package org.flowable.task.api
Interface TaskBuilder
-
public interface TaskBuilderWrapsTaskInfoto the builder.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TaskBuilderassignee(String assigneId)The userId of the person to which this task is delegated.TaskBuildercategory(String category)Change the category of the task.Taskcreate()Creates task instance according values set in the builderTaskBuilderdescription(String description)Free text description of the task.TaskBuilderdueDate(Date dueDate)Change due date of the task.TaskBuilderformKey(String formKey)Change the form key of the taskStringgetAssignee()StringgetCategory()StringgetDescription()DategetDueDate()StringgetFormKey()StringgetId()Set<? extends IdentityLinkInfo>getIdentityLinks()StringgetName()StringgetOwner()StringgetParentTaskId()intgetPriority()StringgetScopeId()StringgetScopeType()StringgetTaskDefinitionId()StringgetTaskDefinitionKey()StringgetTenantId()TaskBuilderid(String id)DB id of the task.TaskBuilderidentityLinks(Set<? extends IdentityLinkInfo> identityLinks)add identity links to the taskTaskBuildername(String name)Name or title of the task.TaskBuilderowner(String ownerId)The userId of the person that is responsible for this task.TaskBuilderparentTaskId(String parentTaskId)the parent task for which this task is a subtaskTaskBuilderpriority(int priority)Indication of how important/urgent this task isTaskBuilderscopeId(String scopeId)add task scopeIdTaskBuilderscopeType(String scopeType)Add scope typeTaskBuildertaskDefinitionId(String taskDefinitionId)task definition id to create task fromTaskBuildertaskDefinitionKey(String taskDefinitionKey)task definition key to create task fromTaskBuildertenantId(String tenantId)Change the tenantId of the task
-
-
-
Method Detail
-
create
Task create()
Creates task instance according values set in the builder- Returns:
- task instance
-
id
TaskBuilder id(String id)
DB id of the task.
-
getId
String getId()
-
name
TaskBuilder name(String name)
Name or title of the task.
-
getName
String getName()
-
description
TaskBuilder description(String description)
Free text description of the task.
-
getDescription
String getDescription()
-
priority
TaskBuilder priority(int priority)
Indication of how important/urgent this task is
-
getPriority
int getPriority()
-
owner
TaskBuilder owner(String ownerId)
The userId of the person that is responsible for this task.
-
getOwner
String getOwner()
-
assignee
TaskBuilder assignee(String assigneId)
The userId of the person to which this task is delegated.
-
getAssignee
String getAssignee()
-
dueDate
TaskBuilder dueDate(Date dueDate)
Change due date of the task.
-
getDueDate
Date getDueDate()
-
category
TaskBuilder category(String 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
TaskBuilder parentTaskId(String parentTaskId)
the parent task for which this task is a subtask
-
getParentTaskId
String getParentTaskId()
-
tenantId
TaskBuilder tenantId(String tenantId)
Change the tenantId of the task
-
getTenantId
String getTenantId()
-
formKey
TaskBuilder formKey(String formKey)
Change the form key of the task
-
getFormKey
String getFormKey()
-
taskDefinitionId
TaskBuilder taskDefinitionId(String taskDefinitionId)
task definition id to create task from
-
getTaskDefinitionId
String getTaskDefinitionId()
-
taskDefinitionKey
TaskBuilder taskDefinitionKey(String taskDefinitionKey)
task definition key to create task from
-
getTaskDefinitionKey
String getTaskDefinitionKey()
-
identityLinks
TaskBuilder identityLinks(Set<? extends IdentityLinkInfo> identityLinks)
add identity links to the task
-
getIdentityLinks
Set<? extends IdentityLinkInfo> getIdentityLinks()
-
scopeId
TaskBuilder scopeId(String scopeId)
add task scopeId
-
getScopeId
String getScopeId()
-
scopeType
TaskBuilder scopeType(String scopeType)
Add scope type
-
getScopeType
String getScopeType()
-
-