Interface WorkflowHistoryRepository
- All Known Subinterfaces:
MutableWorkflowHistoryRepository
- All Known Implementing Classes:
InMemoryWorkflowHistoryRepository
public interface WorkflowHistoryRepository
Repository to access workflow history entries.
- Since:
- 5.4.0
- Author:
- Simon Zambrovski
-
Method Summary
Modifier and TypeMethodDescriptiondefault CompletableFuture<List<WorkflowHistory>> findAll()Returns all stored workflow history entries.findAll(WorkflowStateQuery query) Returns all stored workflow history entries matching a state query.Returns workflow history by given workflow id.
-
Method Details
-
findAll
Returns all stored workflow history entries matching a state query.- Parameters:
query- state criteria to apply- Returns:
- a future completing with an unmodifiable collection of matching workflow history entries
-
findAll
Returns all stored workflow history entries.- Returns:
- a future completing with an unmodifiable collection of all workflow history entries
-
findById
Returns workflow history by given workflow id.- Parameters:
workflowId- the id of the workflow to retrieve history for.- Returns:
- a future completing with the workflow history, or an empty optional when no history exists for the given workflow id
-