Uses of Interface
org.camunda.bpm.engine.task.Task
Package
Description
Public API of the Camunda Platform engine.
Typical usage of the API starts by the creation of a
Through the services obtained from such a
Typical usage of the API starts by the creation of a
ProcessEngineConfiguration
(typically based on a configuration file), from which a ProcessEngine
can be obtained.Through the services obtained from such a
ProcessEngine
, BPM and workflow operation
can be executed:RepositoryService
:
Manages Deployment
sRuntimeService
:
For starting and searching ProcessInstance
sTaskService
:
Exposes operations to manage human (standalone) Task
s,
such as claiming, completing and assigning tasksIdentityService
:
Used for managing User
s,
Group
s and the relations between themManagementService
:
Exposes engine admin and maintenance operations,
which have no relation to the runtime execution of business processesHistoryService
:
Exposes information about ongoing and past process instances.FormService
:
Access to form data and rendered forms for starting new process instances and completing tasks.Classes related to the
FormService
.API implementation classes, which shouldn't directly be used by end-users.
-
Uses of Task in org.camunda.bpm.engine
Modifier and TypeMethodDescriptionTaskService.newTask()
Creates a new task that is not related to any process instance.create a new task with a user defined task idModifier and TypeMethodDescriptionTaskService.getSubTasks
(String parentTaskId) The list of subtasks for this parent task -
Uses of Task in org.camunda.bpm.engine.cdi
-
Uses of Task in org.camunda.bpm.engine.cdi.impl.context
-
Uses of Task in org.camunda.bpm.engine.form
-
Uses of Task in org.camunda.bpm.engine.impl
Modifier and TypeMethodDescriptionNativeTaskQueryImpl.executeList
(CommandContext commandContext, Map<String, Object> parameterMap, int firstResult, int maxResults) TaskQueryImpl.executeList
(CommandContext commandContext, Page page) TaskServiceImpl.getSubTasks
(String parentTaskId) -
Uses of Task in org.camunda.bpm.engine.impl.calendar
Modifier and TypeMethodDescriptionBusinessCalendar.resolveDuedate
(String duedateDescription, Task task) CycleBusinessCalendar.resolveDuedate
(String duedateDescription, Task task) DefaultBusinessCalendar.resolveDuedate
(String duedate, Task task) DueDateBusinessCalendar.resolveDuedate
(String duedate, Task task) DurationBusinessCalendar.resolveDuedate
(String duedate, Task task) -
Uses of Task in org.camunda.bpm.engine.impl.cfg.auth
Modifier and TypeMethodDescriptionprotected AuthorizationEntity
DefaultAuthorizationProvider.createOrUpdateAuthorization
(Task task, String userId, String groupId, Resource resource, boolean isHistoric, Permission... permissions) protected AuthorizationEntity[]
DefaultAuthorizationProvider.createOrUpdateAuthorizations
(Task task, String groupId, String userId) (1) Fetch existing runtime & history authorizations (2) Update authorizations: (2a) fetched authorization == null -> create a new runtime authorization (with READ, (UPDATE/TASK_WORK) permission, and READ_VARIABLE if enabled) -> create a new history authorization (with READ on HISTORIC_TASK) (2b) fetched authorization != null -> Add READ, (UPDATE/TASK_WORK) permission, and READ_VARIABLE if enabled UPDATE or TASK_WORK permission is configurable in camunda.cfg.xml and by default, UPDATE permission is provided -> Add READ on HISTORIC_TASKprotected AuthorizationEntity[]
DefaultAuthorizationProvider.createOrUpdateAuthorizationsByGroupId
(Task task, String groupId) protected AuthorizationEntity[]
DefaultAuthorizationProvider.createOrUpdateAuthorizationsByUserId
(Task task, String userId) DefaultAuthorizationProvider.deleteTaskGroupIdentityLink
(Task task, String groupId, String type) ResourceAuthorizationProvider.deleteTaskGroupIdentityLink
(Task task, String groupId, String type) Invoked whenever a group identity link of a task has been deleted.DefaultAuthorizationProvider.deleteTaskUserIdentityLink
(Task task, String userId, String type) ResourceAuthorizationProvider.deleteTaskUserIdentityLink
(Task task, String userId, String type) Invoked whenever a user identity link of a task has been deleted.protected String
DefaultAuthorizationProvider.getRootProcessInstanceId
(Task task) Invoked whenever a new task is createdDefaultAuthorizationProvider.newTaskAssignee
(Task task, String oldAssignee, String newAssignee) ResourceAuthorizationProvider.newTaskAssignee
(Task task, String oldAssignee, String newAssignee) Invoked whenever an user has been assigned to a task.DefaultAuthorizationProvider.newTaskGroupIdentityLink
(Task task, String groupId, String type) ResourceAuthorizationProvider.newTaskGroupIdentityLink
(Task task, String groupId, String type) Invoked whenever a new group identity link has been added to a task.DefaultAuthorizationProvider.newTaskOwner
(Task task, String oldOwner, String newOwner) ResourceAuthorizationProvider.newTaskOwner
(Task task, String oldOwner, String newOwner) Invoked whenever an user has been set as the owner of a task.DefaultAuthorizationProvider.newTaskUserIdentityLink
(Task task, String userId, String type) ResourceAuthorizationProvider.newTaskUserIdentityLink
(Task task, String userId, String type) Invoked whenever a new user identity link has been added to a task.protected void
DefaultAuthorizationProvider.provideRemovalTime
(AuthorizationEntity authorization, Task task) -
Uses of Task in org.camunda.bpm.engine.impl.cmd
-
Uses of Task in org.camunda.bpm.engine.impl.cmmn.execution
Modifier and TypeMethodDescriptionCmmnActivityExecution.createTask
(TaskDecorator taskDecorator) Creates a new task. -
Uses of Task in org.camunda.bpm.engine.impl.form
-
Uses of Task in org.camunda.bpm.engine.impl.persistence.entity
Modifier and TypeMethodDescriptionTaskManager.findTasksByNativeQuery
(Map<String, Object> parameterMap, int firstResult, int maxResults) TaskManager.findTasksByParentTaskId
(String parentTaskId) TaskManager.findTasksByQueryCriteria
(TaskQueryImpl taskQuery) TaskManager.findTasksByQueryCriteria
(TaskQueryImpl taskQuery, Page page) Deprecated. -
Uses of Task in org.camunda.bpm.engine.rest.dto.task
Modifier and TypeMethodDescriptionstatic TaskDto
TaskDto.fromEntity
(Task task) static TaskDto
TaskWithAttachmentAndCommentDto.fromEntity
(Task task) void
TaskDto.updateTask
(Task task) -
Uses of Task in org.camunda.bpm.engine.rest.hal.task
Modifier and TypeMethodDescriptionstatic HalTask
static HalTask
HalTask.generate
(Task task, ProcessEngine engine) Modifier and TypeMethodDescriptionstatic HalTaskList
HalTaskList.fromTaskList
(List<Task> tasks, long count) static HalTaskList
HalTaskList.generate
(List<Task> tasks, long count, ProcessEngine engine) -
Uses of Task in org.camunda.bpm.engine.rest.impl
-
Uses of Task in org.camunda.bpm.engine.rest.sub.runtime.impl
Modifier and TypeMethodDescriptionprotected HalTask
FilterResourceImpl.convertToHalTask
(Task task) Modifier and TypeMethodDescriptionprotected HalTaskList
FilterResourceImpl.convertToHalTaskList
(List<Task> tasks, long count) -
Uses of Task in org.camunda.bpm.engine.rest.sub.task.impl
Modifier and TypeMethodDescriptionprotected Task
TaskResourceImpl.getTaskById
(String id, boolean withCommentAttachmentInfo) -
Uses of Task in org.camunda.bpm.engine.test.assertions.bpmn
Modifier and TypeMethodDescriptionstatic Task
Helper method to easily claim a task for a specific assignee.protected Task
TaskAssert.getCurrent()
static Task
BpmnAwareTests.task()
Helper method to easily access the only task currently available in the context of the last asserted process instance.static Task
Helper method to easily access the only task with the given taskDefinitionKey currently available in the context of the last asserted process instance.static Task
BpmnAwareTests.task
(String taskDefinitionKey, ProcessInstance processInstance) Helper method to easily access the only task with the given taskDefinitionKey currently available in the context of the given process instance.static Task
BpmnAwareTests.task
(ProcessInstance processInstance) Helper method to easily access the only task currently available in the context of the given process instance.static Task
Helper method to easily access the only task compliant to a given taskQuery and currently available in the context of the last asserted process instance.static Task
BpmnAwareTests.task
(TaskQuery taskQuery, ProcessInstance processInstance) Helper method to easily access the only task compliant to a given taskQuery and currently available in the context of the given process instance.static Task
Helper method to easily unclaim a task.Modifier and TypeMethodDescriptionstatic TaskAssert
BpmnAwareTests.assertThat
(Task actual) Assert that...protected static TaskAssert
TaskAssert.assertThat
(ProcessEngine engine, Task actual) static Task
Helper method to easily claim a task for a specific assignee.static void
Helper method to easily complete a task.static void
Helper method to easily complete a task and pass some process variables.protected String
static Task
Helper method to easily unclaim a task.