> > Hi,> >> > I have a rule looking something like :> >> > (defrule wcooo ;
> > exemple pour un while> > (MyShadowfact (OBJECT ?o))> > (test (< (str-length
> > (?o methodreturningastring "param")) 3))> > =>> > (printout t "rulefired"
> > (str-length (?o methodreturningastring > > "param")) crlf))> >> > And I
> > strangly get the rulefired message with values like 4, 5, 6, ...> >> >
> > Remember that pattern-matching is driven by facts being asserted, >
> > retracted, or modified. In particular, the test above will be > evaluated
> > only when the object is first put into working memory, or > when a change
> > event or modify call causes it to be reevaluated. My > guess is that your
> > method methodreturningastring returns a value > which changes over time
> > without Jess being notified in any way about > the change. You will need to
> > tell Jess when this value changes -- for > example, by using the
> > Rete.updateObject() method
If I do an updateObject but :
1) none of the properties of the bean have changed
2) the methodreturningastring now returns a different value
Does the pattern matching occurs ? (the answer seems to be no)
JF
_________________________________________________________________
Soyez parmi les premiers à essayer Windows Live Mail.
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d