public class TaskHelper extends Object
| Constructor and Description |
|---|
TaskHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addAssigneeIdentityLinks(TaskEntity taskEntity) |
static void |
addOwnerIdentityLink(TaskEntity taskEntity,
String owner) |
static void |
changeTaskAssignee(TaskEntity taskEntity,
String assignee) |
static void |
changeTaskOwner(TaskEntity taskEntity,
String owner) |
static void |
completeTask(TaskEntity taskEntity,
Map<String,Object> variables,
Map<String,Object> transientVariables,
boolean localScope,
CommandContext commandContext) |
static void |
deleteHistoricTask(String taskId) |
static void |
deleteHistoricTaskInstancesByProcessInstanceId(String processInstanceId) |
static void |
deleteTask(String taskId,
String deleteReason,
boolean cascade) |
static void |
deleteTask(TaskEntity task,
String deleteReason,
boolean cascade,
boolean fireTaskListener,
boolean fireEvents) |
static void |
deleteTasksByProcessInstanceId(String processInstanceId,
String deleteReason,
boolean cascade) |
static void |
deleteTasksForExecution(ExecutionEntity executionEntity,
Collection<TaskEntity> taskEntities,
String deleteReason)
Deletes all tasks that relate to the same execution.
|
protected static void |
executeTaskDelete(TaskEntity task,
CommandContext commandContext) |
protected static void |
fireAssignmentEvents(TaskEntity taskEntity) |
protected static void |
fireTaskDeletedEvent(TaskEntity task,
CommandContext commandContext,
FlowableEventDispatcher eventDispatcher) |
protected static void |
handleRelatedEntities(CommandContext commandContext,
TaskEntity task,
String deleteReason,
boolean cascade,
boolean fireTaskListener,
boolean fireEvents,
FlowableEventDispatcher eventDispatcher) |
protected static void |
handleTaskHistory(CommandContext commandContext,
TaskEntity task,
String deleteReason,
boolean cascade) |
static void |
insertTask(TaskEntity taskEntity,
boolean fireCreateEvent) |
static void |
insertTask(TaskEntity taskEntity,
ExecutionEntity execution,
boolean fireCreateEvent) |
protected static void |
internalDeleteTask(TaskEntity task,
String deleteReason,
boolean cascade,
boolean executeTaskDelete,
boolean fireTaskListener,
boolean fireEvents) |
public static void completeTask(TaskEntity taskEntity, Map<String,Object> variables, Map<String,Object> transientVariables, boolean localScope, CommandContext commandContext)
public static void changeTaskAssignee(TaskEntity taskEntity, String assignee)
public static void changeTaskOwner(TaskEntity taskEntity, String owner)
public static void insertTask(TaskEntity taskEntity, ExecutionEntity execution, boolean fireCreateEvent)
public static void insertTask(TaskEntity taskEntity, boolean fireCreateEvent)
public static void addAssigneeIdentityLinks(TaskEntity taskEntity)
public static void addOwnerIdentityLink(TaskEntity taskEntity, String owner)
public static void deleteTasksForExecution(ExecutionEntity executionEntity, Collection<TaskEntity> taskEntities, String deleteReason)
executionEntity - The ExecutionEntity to which the TaskEntity relate to.taskEntities - Tasks to be deleted. It is assumed that all TaskEntity instances need to be related to the same execution.public static void deleteTask(TaskEntity task, String deleteReason, boolean cascade, boolean fireTaskListener, boolean fireEvents)
task - The task to be deleted.deleteReason - A delete reason that will be stored in the history tables.cascade - If true, the historical counterpart will be deleted, otherwise
it will be updated with an end time.fireTaskListener - If true, the delete event of the task listener will be called.fireEvents - If true, the event dispatcher will be used to fire an event
for the deletion.protected static void internalDeleteTask(TaskEntity task, String deleteReason, boolean cascade, boolean executeTaskDelete, boolean fireTaskListener, boolean fireEvents)
protected static void handleRelatedEntities(CommandContext commandContext, TaskEntity task, String deleteReason, boolean cascade, boolean fireTaskListener, boolean fireEvents, FlowableEventDispatcher eventDispatcher)
protected static void handleTaskHistory(CommandContext commandContext, TaskEntity task, String deleteReason, boolean cascade)
protected static void executeTaskDelete(TaskEntity task, CommandContext commandContext)
protected static void fireTaskDeletedEvent(TaskEntity task, CommandContext commandContext, FlowableEventDispatcher eventDispatcher)
public static void deleteTasksByProcessInstanceId(String processInstanceId, String deleteReason, boolean cascade)
public static void deleteHistoricTaskInstancesByProcessInstanceId(String processInstanceId)
public static void deleteHistoricTask(String taskId)
protected static void fireAssignmentEvents(TaskEntity taskEntity)
Copyright © 2018 Flowable. All rights reserved.