Interface IWorkflowTaskLocator
public interface IWorkflowTaskLocator
Handler for locating tasks when the workflow of a process is executed. Triggers are uniquely identified by their
WorkflowNode.getId()
, use the ID if possible. The AWorkflowElement.getName()
is unique at most within a
WorkflowTask
- occasionally there may be different nodes with the same name.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionbyId
(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>
Finds the tasks by the given ID in the current workflow execution context.Finds the task by the given UUID in the current process.default List<WorkflowTask>
Finds the tasks by the given UUID in the current process.default List<WorkflowTask>
Finds the tasks by the given UUID in the current process.current()
-
Method Details
-
byId
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
null
when no such task exists.
-
byIds
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
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
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
null
when no such task exists.
-
byUuids
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
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
null
when no task is currently being executed.
-