Package-level declarations

Types

Link copied to clipboard

Base class for evaluation engines that provides hash calculation.

Link copied to clipboard

Pluggable contract condition evaluation engine.

Link copied to clipboard
sealed class EngineReference

Reference to an evaluation engine from an execution model.

Link copied to clipboard
data class EvaluationContext(val contractId: String, val executionModel: ExecutionModel, val contractData: JsonElement? = null, val metadata: Map<String, Any?> = emptyMap())

Evaluation context providing additional information for condition evaluation.

Link copied to clipboard

Collection of contract evaluation engines.

Functions

Link copied to clipboard
suspend fun ContractCondition.evaluateWith(engine: ContractEvaluationEngine, inputData: JsonElement, context: EvaluationContext): ConditionResult

Evaluate a condition using an engine with error handling.

Link copied to clipboard

Factory function for creating an in-memory evaluation engines collection.

Link copied to clipboard

Filter engines by a predicate.

Link copied to clipboard

Get an engine or return default value.

Link copied to clipboard

Transform engines using a mapping function.

Link copied to clipboard

Get an engine or throw with a clear error message.

Link copied to clipboard

Converts an ExecutionModel to an EngineReference.

Link copied to clipboard
fun EvaluationEngines.verifyOrThrow(engineId: String, expectedHash: String)

Verify engine integrity or throw SecurityException.

Link copied to clipboard

Add engine hash and version to execution model from registered engines.