Hi all,

I'm just starting out with Jess here and I'm unsure how to access Fact members

I have a simple JavaBean containing an ArrayList and defined that with 
"(deftemplate Watchlist (declare (from-class Watchlist)))"

After inserting the Fact I'd like to use a rule to check if the ArrayList 
contains a value:

(defrule person-on-evildoer-watchlist

         ?evildoers <- (Watchlist {category == "evildoers"})
         (call ?evildoers.watchedNames contains "Dr. Evil")
 =>   
        (printout t "Suspicious!")
)

Even though the "watchedNames" ArrayList does contain the specified value, the 
rule does not fire. It does fire when I comment out the "call" function, so I 
suspect I'm doing something wrong when checking the contents of the List.

Could you point me in the right direction here?

Thanks,
Jörg Henschel


--------------------------------------------------------------------
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].
--------------------------------------------------------------------

Reply via email to