Record Class WorkflowStateQuery.StepStatusCriterion
java.lang.Object
java.lang.Record
io.axoniq.framework.workflow.query.api.WorkflowStateQuery.StepStatusCriterion
- Record Components:
stepName- step name to inspectstepStatus- step status to match
- All Implemented Interfaces:
WorkflowStateQuery.Criterion
- Enclosing class:
WorkflowStateQuery
public static record WorkflowStateQuery.StepStatusCriterion(String stepName, StepStatus stepStatus)
extends Record
implements WorkflowStateQuery.Criterion
Selects workflows by a named step's status.
-
Constructor Summary
ConstructorsConstructorDescriptionStepStatusCriterion(String stepName, StepStatus stepStatus) Creates an instance of aStepStatusCriterionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.stepName()Returns the value of thestepNamerecord component.Returns the value of thestepStatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StepStatusCriterion
Creates an instance of aStepStatusCriterionrecord class.- Parameters:
stepName- the value for thestepNamerecord componentstepStatus- the value for thestepStatusrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
stepName
Returns the value of thestepNamerecord component.- Returns:
- the value of the
stepNamerecord component
-
stepStatus
Returns the value of thestepStatusrecord component.- Returns:
- the value of the
stepStatusrecord component
-