Record Class ConditionContext
java.lang.Object
java.lang.Record
com.iantapply.orchestra.api.ConditionContext
- Record Components:
executionId- unique execution being evaluatedevent- owning event definitionstage- stage guarded by the conditioncondition- condition configurationnow- time captured for this evaluationvariables- immutable snapshot of execution variables
public record ConditionContext(UUID executionId, EventDefinition event, StageDefinition stage, ConditionSpec condition, Instant now, Map<String,Object> variables)
extends Record
Immutable context supplied while evaluating an
OrchestraCondition.-
Constructor Summary
ConstructorsConstructorDescriptionConditionContext(UUID executionId, EventDefinition event, StageDefinition stage, ConditionSpec condition, Instant now, Map<String, Object> variables) Snapshots the variable map for safe asynchronous evaluation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditionrecord component.final booleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.Returns the value of theexecutionIdrecord component.final inthashCode()Returns a hash code value for this object.now()Returns the value of thenowrecord component.stage()Returns the value of thestagerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevariablesrecord component.
-
Constructor Details
-
ConditionContext
public ConditionContext(UUID executionId, EventDefinition event, StageDefinition stage, ConditionSpec condition, Instant now, Map<String, Object> variables) Snapshots the variable map for safe asynchronous evaluation.
-
-
Method Details
-
toString
-
hashCode
-
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). -
executionId
Returns the value of theexecutionIdrecord component.- Returns:
- the value of the
executionIdrecord component
-
event
-
stage
-
condition
-
now
-
variables
-