Hi,
This problem got into my way when I upgraded to Jess71a2. There was no
problem with 70p1.
I have this Jess file:
;---
(deftemplate a (slot s1) (slot s2))
(defquery MAIN::q (declare (variables ?id))
?z <- (a (s1 ?id) (s2 ?s2)))
(assert (a (s1 qwe) (s2 asd)))
;---
Now, if I batch() this file into a Rete object, the query works fine. If
I bload this file (previously saved with bsave), the defquery stops
working. When I do
QueryResult qr = jess.runQueryStar("MAIN::q", new
ValueVector().add("qwe"));
and then do qr.next(), this method returns false and qr is null, which I
believe means no match was found by the query.
The problem seems to be related to the (a ...) fact, since if my file
does not include it and I assert it after bload, it works fine.
I repeat: the problem was not there with Jess70p1.
Cheers,
Henrique
--------------------------------------------------------------------
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]
--------------------------------------------------------------------