Can I use Drools for a definition like below
> pay_type in(NB,CC) and (brand in (VISA,MASTER) or bank in(HDFC,CITI))
operations - and , or
keyword - in
tags - pay_type , brand , bank
I need to provide a java api with 3 inputs
validateAgainstRule('NB', 'VISA', 'AXIS')
should return me true;
and
validateAgainstRule('NB', 'AMEX', 'AXIS')
should return me false;
Can I achieve this using drools?