I have a function that returns Optional that I want to use in drools eval, e.g.
rule "some rule"
when
eval(func().orElse(1.0) > 0.0)
then
....
end
where func() has return type being Optional<Double>. The above is giving me compile error because of orElse. Is there any workaround? Thanks!