Class WorkflowStateQueryMatcher

java.lang.Object
io.axoniq.framework.workflow.query.utils.WorkflowStateQueryMatcher

@Internal public final class WorkflowStateQueryMatcher extends Object
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 Details

    • matches

      public static boolean matches(WorkflowStateQuery query, WorkflowState state)
      Determines whether a workflow state satisfies every criterion in a query.
      Parameters:
      query - criteria to evaluate
      state - workflow state to inspect
      Returns:
      true when the state satisfies all criteria