Package org.flowable.task.service.impl
Class BaseTaskBuilderImpl
java.lang.Object
org.flowable.task.service.impl.BaseTaskBuilderImpl
- All Implemented Interfaces:
TaskBuilder
- Direct Known Subclasses:
CmmnTaskBuilderImpl
,TaskBuilderImpl
Base implementation of the
TaskBuilder
interface- Author:
- martin.grofcik
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected CommandExecutor
protected String
protected Date
protected String
protected String
protected Set<? extends IdentityLinkInfo>
protected String
protected String
protected String
protected int
protected String
protected String
protected String
protected String
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe userId of the person to which this task is delegated.Change the category of the task.abstract 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 IdentityLinkInfo>
getName()
getOwner()
int
DB id of the task.identityLinks
(Set<? extends 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
-
Field Details
-
commandExecutor
-
id
-
name
-
description
-
priority
protected int priority -
ownerId
-
assigneeId
-
dueDate
-
category
-
parentTaskId
-
tenantId
-
formKey
-
taskDefinitionId
-
taskDefinitionKey
-
scopeId
-
scopeType
-
identityLinks
-
-
Constructor Details
-
BaseTaskBuilderImpl
-
-
Method Details
-
create
Description copied from interface:TaskBuilder
Creates task instance according values set in the builder- Specified by:
create
in interfaceTaskBuilder
- Returns:
- task instance
-
id
Description copied from interface:TaskBuilder
DB id of the task.- Specified by:
id
in interfaceTaskBuilder
-
name
Description copied from interface:TaskBuilder
Name or title of the task.- Specified by:
name
in interfaceTaskBuilder
-
description
Description copied from interface:TaskBuilder
Free text description of the task.- Specified by:
description
in interfaceTaskBuilder
-
priority
Description copied from interface:TaskBuilder
Indication of how important/urgent this task is- Specified by:
priority
in interfaceTaskBuilder
-
owner
Description copied from interface:TaskBuilder
The userId of the person that is responsible for this task.- Specified by:
owner
in interfaceTaskBuilder
-
assignee
Description copied from interface:TaskBuilder
The userId of the person to which this task is delegated.- Specified by:
assignee
in interfaceTaskBuilder
-
dueDate
Description copied from interface:TaskBuilder
Change due date of the task.- Specified by:
dueDate
in interfaceTaskBuilder
-
category
Description copied from interface:TaskBuilder
Change the category of the task. This is an optional field and allows to 'tag' tasks as belonging to a certain category.- Specified by:
category
in interfaceTaskBuilder
-
parentTaskId
Description copied from interface:TaskBuilder
the parent task for which this task is a subtask- Specified by:
parentTaskId
in interfaceTaskBuilder
-
tenantId
Description copied from interface:TaskBuilder
Change the tenantId of the task- Specified by:
tenantId
in interfaceTaskBuilder
-
formKey
Description copied from interface:TaskBuilder
Change the form key of the task- Specified by:
formKey
in interfaceTaskBuilder
-
taskDefinitionId
Description copied from interface:TaskBuilder
task definition id to create task from- Specified by:
taskDefinitionId
in interfaceTaskBuilder
-
taskDefinitionKey
Description copied from interface:TaskBuilder
task definition key to create task from- Specified by:
taskDefinitionKey
in interfaceTaskBuilder
-
identityLinks
Description copied from interface:TaskBuilder
add identity links to the task- Specified by:
identityLinks
in interfaceTaskBuilder
-
scopeId
Description copied from interface:TaskBuilder
add task scopeId- Specified by:
scopeId
in interfaceTaskBuilder
-
scopeType
Description copied from interface:TaskBuilder
Add scope type- Specified by:
scopeType
in interfaceTaskBuilder
-
getId
- Specified by:
getId
in interfaceTaskBuilder
-
getName
- Specified by:
getName
in interfaceTaskBuilder
-
getDescription
- Specified by:
getDescription
in interfaceTaskBuilder
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfaceTaskBuilder
-
getOwner
- Specified by:
getOwner
in interfaceTaskBuilder
-
getAssignee
- Specified by:
getAssignee
in interfaceTaskBuilder
-
getTaskDefinitionId
- Specified by:
getTaskDefinitionId
in interfaceTaskBuilder
-
getTaskDefinitionKey
- Specified by:
getTaskDefinitionKey
in interfaceTaskBuilder
-
getDueDate
- Specified by:
getDueDate
in interfaceTaskBuilder
-
getCategory
- Specified by:
getCategory
in interfaceTaskBuilder
-
getParentTaskId
- Specified by:
getParentTaskId
in interfaceTaskBuilder
-
getTenantId
- Specified by:
getTenantId
in interfaceTaskBuilder
-
getFormKey
- Specified by:
getFormKey
in interfaceTaskBuilder
-
getIdentityLinks
- Specified by:
getIdentityLinks
in interfaceTaskBuilder
-
getScopeId
- Specified by:
getScopeId
in interfaceTaskBuilder
-
getScopeType
- Specified by:
getScopeType
in interfaceTaskBuilder
-