Re: JESS: Using fact-id inside ordered facts, JAVA problem

2006-06-21 Thread friedman_hill ernest j
I think Julian Hoch wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > > "Fact--n" means the fact's ID is negative, which can be the case > > before a fact is added to working memory. > > Ah ok thanks. The problem was that I already had added the fact > before, and adding it again

JESS: Using fact-id inside ordered facts, JAVA problem

2006-06-21 Thread Julian Hoch
> "Fact--n" means the fact's ID is negative, which can be the case > before a fact is added to working memory. Ah ok thanks. The problem was that I already had added the fact before, and adding it again resulted in these invalid Fact-IDs. Is there a way to get the Fact-ID of a shadow fact in the

Re: JESS: Using fact-id inside ordered facts, JAVA problem

2006-06-20 Thread friedman_hill ernest j
I think Julian Hoch wrote: > > FactIDValue fvalue = new FactIDValue( fact1 ); > Fact fact2 = new Fact( "MAIN::A", engine ); > fact2.setSlotValue( "__data", fvalue ); There's the mistake right there. __data is a multislot, but you're setting it to s single value. You should be sett

JESS: Using fact-id inside ordered facts, JAVA problem

2006-06-20 Thread Julian Hoch
Hi, I got the following rule: (defrule rule1 (A ?x) => (do_some_stuff)) Now I want to add the corresponding facts to the jess working Memory. If I did it in jess, it would look like this: (bind ?x (assert (my_fact_1))) (assert (A ?x)) which results in f-0 (MAIN::my_fact_1) f-1 (MAIN::A )