On Fri, May 9, 2008 at 3:43 AM, Marcelo Alvarenga Pedrosa <[EMAIL PROTECTED]>
wrote:
>
> I need to accumulate the all values obtained by the rules in the same
> variable, I mean, sum the variable value to another value and storing in the
> variable.
>
>
> String rule1 =" (defrule ruleage";
> rule1 +="(risk ?r1)";
> rule1 +="(Questionnaire1 {age < 25})";
> rule1 +="=>";
> rule1 +="(store HighRisk(+ ?r1)))";
>
Hello Marcelo,
the Jess function (+ arg...) computes the sum of its arguments, so if there
is just one argument, it is a no-op. Therefore, you have, in fact, nothing
but "(store HighRisk ?r1)". - You know enough to devise the fix ;-)
Wolfgang