100% Java, Lambda Enabled, Lightweight Rules Engine with a Simple and Intuitive DSL
This release includes:
Null facts used in the invocation of a rule caused an exception. This patch allows null facts to be used without throwing an exception.
NameValueTypeConvertible is used in the lambda when() and then() functions. Previously, it was decorating the FactMap, but not delegating to its toString method. This meant when filtering facts via the using() method and using the System.out::println function reference, the String value of the fact was not being outputted (e.g. in the Home Loan example in the README).
The bug was corrected by having NameValueTypeConvertible delegate its toString method to the map it decorates.
Now when() and then() methods in the DSL will be able to convert facts of an unspecified type easily to BigDecimal or Boolean types using the methods getBigDeciVal() and getBoolVal, respectively.