java.lang.IllegalArgumentException: Rule ‘XYZ' is not annotated with 'org.easyrules.annotation.Rule'

GitHub | cvsubs | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Using @Rule in a meta annotation

    GitHub | 1 year ago | cvsubs
    java.lang.IllegalArgumentException: Rule ‘XYZ' is not annotated with 'org.easyrules.annotation.Rule'

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Rule ‘XYZ' is not annotated with 'org.easyrules.annotation.Rule'

      at org.easyrules.core.RuleDefinitionValidator.checkRuleClass()
    2. org.easyrules.core
      DefaultRulesEngine.registerRule
      1. org.easyrules.core.RuleDefinitionValidator.checkRuleClass(RuleDefinitionValidator.java:34)
      2. org.easyrules.core.RuleDefinitionValidator.validateRuleDefinition(RuleDefinitionValidator.java:26)
      3. org.easyrules.core.RuleProxy.asRule(RuleProxy.java:34)
      4. org.easyrules.core.DefaultRulesEngine.asRule(DefaultRulesEngine.java:209)
      5. org.easyrules.core.DefaultRulesEngine.registerRule(DefaultRulesEngine.java:101)
      5 frames