Is there some way to bind the result of a return value expression on LHS?

e.g.:

rule "a"
        when
                exprBind : (expensiveExpression())
                A ( someAttrib == (exprBind.someValue()))
                B ( someOtherAttrib > (exprBind.someOtherValue()))
        then
                ...
end

Its not a global variable, just some expensive expression used more than once on LHS and probably RHS too.

Reply via email to