Class WorkflowStateQueryMatcher
java.lang.Object
io.axoniq.framework.workflow.query.utils.WorkflowStateQueryMatcher
Evaluates
WorkflowStateQuery criteria against an in-memory workflow state.
Storage-specific repositories should translate the query to their native query language instead of materializing all state and using this matcher.
- Since:
- 5.4.0
- Author:
- Simon Zambrovski
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanmatches(WorkflowStateQuery query, WorkflowState state) Determines whether a workflow state satisfies every criterion in a query.
-
Method Details
-
matches
Determines whether a workflow state satisfies every criterion in a query.- Parameters:
query- criteria to evaluatestate- workflow state to inspect- Returns:
truewhen the state satisfies all criteria
-