Good mornig, i m working in java and jess....i need to set a message (string) in java with a jess command how i can do? for example my class for send massage is Send_message("ID","message_to_send"); working in jess i do a rule engine and the out of rules set-up the "message_to_send" in the class (java). >-- Messaggio Originale -- >From: [EMAIL PROTECTED] >Subject: Re: JESS: Rules not firing >To: [EMAIL PROTECTED] >Date: Mon, 3 May 2004 19:09:34 -0700 (PDT) >Reply-to: [EMAIL PROTECTED] > > >I think Rajani Sadasivam wrote: >> ==> f-1 (MAIN::book (name "Java for beginners") (keyword "Java") >> (publisher "oreilly") (price 15)) > >-vs- > >> ==> f-5 (MAIN::book (name samplebook) (keyword Java) (publisher oreilly) > >> (price 14)) > >Jess has both a "String" type and a "symbol" or "atom" type (this is >covered over the first few paragraphs of chapter 2 of the manual; >worth a look.) The quoted string "Java" and the unquoted symbol Java >are two different things. If you write a rule to match symbols, then >this rule won't match strings. If you write it to match strings, then >it won't match symbols. You just have to pick one and be >consistent. You wrote your rule to not use quotes around the >publisher and keyword, but you asserted the facts (from Jess anyway) >with the quotes included, and this is why your rule doesn't match. > >Because book titles and publisher names will both often have spaces in >them, you are required to use Strings -- i.e., double-quoted >characters. Just do this consistently; when you assert the fact from >Jess, or from Java, and when you write the rule: always use the >quotes. For keywords, you might choose to use symbols instead, and so >omit the quotes, but again, you have to be consistent. > > > > >--------------------------------------------------------- >Ernest Friedman-Hill >Science and Engineering PSEs Phone: (925) 294-2154 >Sandia National Labs FAX: (925) 294-2234 >PO Box 969, MS 9012 [EMAIL PROTECTED] >Livermore, CA 94550 http://herzberg.ca.sandia.gov > >-------------------------------------------------------------------- >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] >-------------------------------------------------------------------- >
__________________________________________________________________ Tiscali ADSL libera la velocita'! Attiva Senza Canone entro il 17 maggio: navighi a 1,5 euro l'ora per i primi 3 mesi,se scegli il modem e' tuo in comodato gratuito e in piu' hai gratis SuperMail per 12 mesi. Non aspettare, attivala subito! http://abbonati.tiscali.it/adsl/prodotti/640Kbps/ -------------------------------------------------------------------- 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] --------------------------------------------------------------------