Hi, 

I am back, I tried out the store/fetch. BUT, it return
me only the latest fired facts. Why? I need both (any)
facts which is fired. Is like the variable
(fact-in-java) is overwritten. How can I get the
activated facts out, I mean all the fired facts?
Please advice.

merlinMain.r.executeCommand("(deftemplate
adv-attributes" +
            "(slot id)" +
            "(multislot attribs))");

            merlinMain.r.executeCommand("(defrule
show-adv-attributes" +
            " ?fact <- (adv-attributes (id ?id)
(attribs ?attribs))" +
            "=>" +
            "(store fact-in-java ?attribs)" +
            "(printout t \"-------------------------\"
crlf)" +
            "(printout t \"Fact-id=\" ?fact crlf)" +
            "(printout t \"id=\" ?id crlf)" +
            "(printout t \"attribs=\" ?attribs
crlf))");

            merlinMain.r.reset();

            merlinMain.r.executeCommand("(assert
(adv-attributes (id 1) (attribs low-budget)))");
            merlinMain.r.executeCommand("(assert
(adv-attributes (id 2) (attribs
control-message-frequency)))");

            merlinMain.r.run();

        String str1 =
merlinMain.r.fetch("fact-in-java").stringValue(merlinMain.r.getGlobalContext());

            System.out.println("--"+str1+"--");


        
                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

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