Interface IWorkflowTaskLocator
- 
public interface IWorkflowTaskLocatorHandler for locating tasks when the workflow of a process is executed. Triggers are uniquely identified by theirWorkflowNode.getId(), use the ID if possible. TheAWorkflowElement.getName()is unique at most within aWorkflowTask- occasionally there may be different nodes with the same name.- Since:
 - 7.0.0
 - Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description WorkflowTaskbyId(long taskId)Finds the task by the given ID in the current workflow execution context.default List<WorkflowTask>byIds(long... taskIds)Finds the tasks by the given ID in the current workflow execution context.default List<WorkflowTask>byIds(Iterable<Long> taskIds)Finds the tasks by the given ID in the current workflow execution context.WorkflowTaskbyUuid(UUID taskUuid)Finds the task by the given UUID in the current process.default List<WorkflowTask>byUuids(Iterable<UUID> taskUuids)Finds the tasks by the given UUID in the current process.default List<WorkflowTask>byUuids(UUID... taskUuids)Finds the tasks by the given UUID in the current process.WorkflowTaskcurrent() 
 - 
 
- 
- 
Method Detail
- 
byId
@Nullable WorkflowTask byId(long taskId)
Finds the task by the given ID in the current workflow execution context.- Parameters:
 taskId- ID of the task.- Returns:
 - The task with the given ID, or 
nullwhen no such task exists. 
 
- 
byIds
@Nonnull default List<WorkflowTask> byIds(Iterable<Long> taskIds)
Finds the tasks by the given ID in the current workflow execution context.- Parameters:
 taskIds- IDs of the tasks.- Returns:
 - The tasks with the given IDs, possibly an empty list when no tasks were found.
 
 
- 
byIds
@Nonnull default List<WorkflowTask> byIds(long... taskIds)
Finds the tasks by the given ID in the current workflow execution context.- Parameters:
 taskIds- IDs of the tasks.- Returns:
 - The nodes with the given ID, possibly an empty list when no nodes were found.
 
 
- 
byUuid
@Nullable WorkflowTask byUuid(UUID taskUuid)
Finds the task by the given UUID in the current process.- Parameters:
 taskUuid- UUID of the task to find- Returns:
 - The task with the given UUID, or 
nullwhen no such task exists. 
 
- 
byUuids
@Nonnull default List<WorkflowTask> byUuids(Iterable<UUID> taskUuids)
Finds the tasks by the given UUID in the current process.- Parameters:
 taskUuids- UUIDs of the tasks to find.- Returns:
 - The tasks with the given UUIDs, possibly an empty list when no tasks were found.
 
 
- 
byUuids
@Nonnull default List<WorkflowTask> byUuids(UUID... taskUuids)
Finds the tasks by the given UUID in the current process.- Parameters:
 taskUuids- UUIDs of the tasks to find.- Returns:
 - The nodes with the given UUIDs, possibly an empty list when no tasks were found.
 
 
- 
current
WorkflowTask current()
- Returns:
 - The workflow task that is currently being executed, or 
nullwhen no task is currently being executed. 
 
 - 
 
 -