This annotation can be used to define conditions for a rule method.
It supports both literal conditions and method references.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDefines conditions expressed as method references.String[]This annotation value defines an array of literal conditions such as `["$c.type == $cat.id", "$c.rating > 30.0"]`.
-
Element Details
-
value
String[] valueThis annotation value defines an array of literal conditions such as `["$c.type == $cat.id", "$c.rating > 30.0"]`.- Returns:
- an array of literal conditions
- Default:
- {}
-
methods
MethodPredicate[] methodsDefines conditions expressed as method references.- Returns:
- array of
MethodPredicateconditions
- Default:
- {}
-