Condition

@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class Condition(val name: String = "", val cost: <Error class: unknown class> = 0.0)

Annotates a method that evaluates a condition. This will have access to the processContext and also can use any other state.

Parameters

name

Name of the condition. If not provided, the name will be the method name Useful if we want to avoid magic strings by sharing a constant

cost

Cost of evaluating the condition, between 0 and 1. 0 is cheap; 1 is the most expensive. The platform can use this information for optimization.

Properties

Link copied to clipboard
val cost: <Error class: unknown class> = 0.0
Link copied to clipboard