On Nov 24, 2006, at 7:20 AM, Helge Hartmann wrote:
Ok, I misspelled the deftemplate.
OK, I'm glad you figured it out.
I wanted to tell you that all the Jess language functions that
manipulate the rule engine itself have some direct equivalent in
Jess's Java APIs; often it's more efficient to use them from Java, or
at least involves less code. In this case you can replace all of the
below with the single line
this.knowledge.add(bid);
Helge Hartmann schrieb:
Thanks for that.
I have another problem. When I add a shadow fact from Java, the
fact is not placed in the MAIN module.
I store the Bid from Java with
this.knowledge.store("latestBid", bid);
String cmd1 =
"(add (fetch latestBid))";
try {
this.knowledge.eval(cmd1);
} catch (JessException e) {
How can I set the module to which the fact shall be assertet?
--------------------------------------------------------------------
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 owner-jess-
[EMAIL PROTECTED]
--------------------------------------------------------------------
---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://www.jessrules.com
--------------------------------------------------------------------
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]
--------------------------------------------------------------------