Hi!
> The rule does not match because you reset before you start.
This is not true. The bean property has been changed by the RHS which can be seen in
the output. The problem is that the shadow fact's slot value is not changed.
> Reset asserts initial fact.
This is true.
> So Don't reset or change the rule like.
>
> (defrule startup
> (initial-fact)
> =>
> (modify 1 (name "Emmeline")))
The rule won't fire without resetting the engine. So, calling (reset) or r.reset() is
definitively correct. Further, you don't need an explicit (initial-fact) pattern on
the LHS. This is automatically inserted by the Jess parser in case a rule has an empty
LHS.
To make this perfectly clear: you MUST reset the engine in order to make rules having
an empty LHS fire.
Thomas
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------