Condition
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.