j-easy / easy-rules

The simple, stupid rules engine for Java
https://github.com/j-easy/easy-rules/wiki
MIT License
4.86k stars 1.05k forks source link

Fact evaluation to "unknown" #366

Open jopen-ux opened 2 years ago

jopen-ux commented 2 years ago

Perhaps a simple question : Is there any possibility to not evaluate to only true/false but also "unknown" ?

As the method is : public boolean evaluate(Facts facts) and returns the primitive type, this is not directly possible from the fact evaluation ... If not possible Should not too complicated to implement changing the returned value to Boolean. Can I make a proposal (and how)

shabir1 commented 2 years ago

@jopen-ux Will, you share the code snippet of how you are writing and executing the rules?

shabir1 commented 2 years ago

@jopen-ux Which version of easy-rules are you using