Does drools support ternary operator ? How we can handle a ternary operator to bind a value to a variable in a fact field in when part ?
I need an implementation like;
Address (
...(conditions)...
$var : countryCode != null ? value1 : value2,
...(conditions)...
)
I am using drools version 7. Can anybody please help me to reach a solution for this ?