Hello,

I have the following problem. 
- I'm trying to call Jess from Java program. 
- I assert facts using Rete.assertFact(fact) method. The fact has an id field of
type long, so I use f.setFlotValue("id", new LongValue(factdata.getId()). 
- Template for the fact does not specify data type for the field "id" (although
I also tried RU.LONG).
- Rules are are defined by constructing a string (defrule ...) and then passing
this string to Rete.executeCommand(rulestring)

Everything is accepted/parsed fine, except no activations happen.  :(
Now, when I use Integer value for the "id" slot (e.g. f.setFlotValue("id", new
Value(element.getId(), RU.INTEGER)) activations take place and everything works
ok. 

The rule defined is quite simple:
(defrule test3
?req <- (testfact (id 1) ... ) => ...)

So, am I overlooking something or for some reason jess cannot do matching based
on slot values of type long ?

Thank you in advance for your help,
Raoul

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