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