Class EventSourcedRunningWorkflows
java.lang.Object
io.axoniq.framework.workflow.runtime.execution.EventSourcedRunningWorkflows
- All Implemented Interfaces:
RunningWorkflows
Event sourced collection of running workflow IDs, loaded by
WorkflowStore.- Since:
- 5.4.0
- Author:
- Simon Zambrovski
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether the given workflow identifier is currently running.static EventCriteriaReturns the criteria selecting workflow lifecycle events introduced by ADR-007.voidApplies workflow lifecycle metadata to this collection.Returns the current set of running workflow identifiers.
-
Field Details
-
ENTITY_ID
Singleton identifier of the running-workflows entity.- See Also:
-
-
Constructor Details
-
EventSourcedRunningWorkflows
public EventSourcedRunningWorkflows()
-
-
Method Details
-
criteriaBuilder
Returns the criteria selecting workflow lifecycle events introduced by ADR-007.- Returns:
- event criteria for workflow lifecycle reconstruction
-
evolve
Applies workflow lifecycle metadata to this collection.- Parameters:
metadata- lifecycle event metadata
-
workflowIds
Description copied from interface:RunningWorkflowsReturns the current set of running workflow identifiers.- Specified by:
workflowIdsin interfaceRunningWorkflows- Returns:
- immutable set of workflow identifiers
-
contains
Description copied from interface:RunningWorkflowsChecks whether the given workflow identifier is currently running.- Specified by:
containsin interfaceRunningWorkflows- Parameters:
workflowId- workflow identifier to inspect- Returns:
trueif the workflow is running
-