I made use of JEP earlier and then realised that it wont fit my case.
On a call to the database/backend, I get a json response, which has a structure as below:
"key": {
"!A & B"
}
And there will be values for A and B like true or false.
I used bpodgursky.jbool_expressions, but do not understand how to substitute values:
Expression<String> parsedExpression = RuleSet.simplify(ExprParser.parse("!A&B"));
RuleSet.assign("A", Boolean.TRUE); //THIS IS WRONG
Could anybody help me with the correct library to work on and some sample example to do so?