You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.Boolean (java.lang.Integer and java.lang.Boolean are in module java.base of loader 'bootstrap')
at org.jeasy.rules.mvel.MVELCondition.evaluate(MVELCondition.java:65)
at org.jeasy.rules.mvel.MVELRule.evaluate(MVELRule.java:120)
at org.jeasy.rules.core.DefaultRulesEngine.doFire(DefaultRulesEngine.java:97)
at org.jeasy.rules.core.DefaultRulesEngine.fire(DefaultRulesEngine.java:70)
at com.wayfair.my.java.project.service.EasyRylesService.runEasyRulesEngine(EasyRylesService.java:53)
at com.wayfair.my.java.project.service.EasyRylesService.main(EasyRylesService.java:31)
Thanks in advance for the help.
The text was updated successfully, but these errors were encountered:
Hi, I am doing a poc to use Easy rules by defining rules in a json file. My question is can I define in condition in json as provided below.
[
{
"name": "TestRule",
"description": "Test rule",
"condition": "facts.get('value') in [9, 10]",
"actions": ["System.out.println("Passed");"]
}
]
Currently I am getting an exception
java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.Boolean (java.lang.Integer and java.lang.Boolean are in module java.base of loader 'bootstrap')
at org.jeasy.rules.mvel.MVELCondition.evaluate(MVELCondition.java:65)
at org.jeasy.rules.mvel.MVELRule.evaluate(MVELRule.java:120)
at org.jeasy.rules.core.DefaultRulesEngine.doFire(DefaultRulesEngine.java:97)
at org.jeasy.rules.core.DefaultRulesEngine.fire(DefaultRulesEngine.java:70)
at com.wayfair.my.java.project.service.EasyRylesService.runEasyRulesEngine(EasyRylesService.java:53)
at com.wayfair.my.java.project.service.EasyRylesService.main(EasyRylesService.java:31)
Thanks in advance for the help.
The text was updated successfully, but these errors were encountered: