Assert the results of expensiveExpression() to the engine. Either from your
code, or as a rule. Then the other rules can just depend on That object
being in WM.

On 4/11/06, Juergen <[EMAIL PROTECTED]> wrote:
>
> 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