Re: JESS: persistent storage of facts and rules

2006-02-21 Thread ejfried
I think Matthew Hutchinson wrote: g'day everyone, when it comes to sotrage of rules and facts, how are most people handling it? Are you using JessML? Also, has anyone been storing the JessML in a database? I don't think too many projects are using JessML yet, although I expect that many

Re: JESS: Question on defadvice

2006-02-21 Thread ejfried
I think Lakshmi Vempati wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] I am trying to use defadvice (before reset and after clear) and I noticed the following problem: If reset (or clear) is invoked via a a programmatic call to the reset (or clear) method defined in the

Re: JESS: Logical dependency bug?

2006-02-02 Thread ejfried
I'd call that a bug, yes. Thanks. I think Yura wrote: Don't know whether it's a bug but after (deffunction fun () (assert (b 2))) (defrule rule (logical (a))=(assert (b 1))) (defrule rule2 (logical (a))=(fun)) (assert (a)) (run) (retract 0) deletes only (a) and (b 1). (b 2) doesn't

Re: JESS: Finding fact the max/min slot value

2006-02-01 Thread ejfried
I think erich.oliphant wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hi, I am trying to figure out the best way to have a rule fire only for a fact whose slot value is the min or max of a group of facts. Match a negated pattern to the (nonexistent) fact in which some number is

Re: JESS: retract doesn't work like I want it to do

2006-01-27 Thread ejfried
I think =?iso-8859-1?Q?H=FCbner?= wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hello everybody, I need a hint from you. When I try to retract a fact, all other facts are reactivated. ... Can somebody tell me what's wrong with the code? You've got a bunch of rules with the

Re: JESS: Watch all - '1 ' inside defrule

2006-01-24 Thread ejfried
I think Daniela CLARO wrote: MAIN::installer-barreaux-metallique: =1=1=1=1+t MAIN::installer-barreaux-metallique1: =1=1=1=1+t What actually this means for Jess? Internally, Jess breaks rules containing the or conditional element into multiple rules. In general, you shouldn't worry about

Re: JESS: ppdefrule doesn't make sense - is this a Jess 6.1 bug?

2006-01-19 Thread ejfried
I think Hector Urroz wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Thanks for the response. It does seem a bit odd to automatically and silently modify code. Why not throw an exception? Is this done elsewhere in Jess? What is the rationale? Did I stumble onto a reserved rule

Re: JESS: JESS website

2006-01-19 Thread ejfried
I think Vageesh Setty wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Website seems to be down for a while.. is http://herzberg.ca.sandia.gov/jess/docs/70/programming.html right URL? It's OK now. Thanks. - Ernest

Re: JESS: Checking for null/nil on the RHS

2006-01-18 Thread ejfried
I think erich.oliphant wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] (if (eq ?effRate nil) then ;;(dts-log-error No effective rate found for (call com.ngc.dts.util.DateUtils formatDateTime ?pddate)) return ) That return is just the symbol return, not the

JESS: Problem with trial distribution

2006-01-17 Thread ejfried
Several people have reported that there was a problem with the distribution file for the trial version (only) of Jess 7.0b5. The symptom is basically that the JessDE just doesn't work. The licensed download is unaffected. I've corrected the problem and posted a new binary. If you've been having

Re: JESS: Help on the syntax of a rule.

2005-12-21 Thread ejfried
I think ROSSEL, Olivier (CIMPA) wrote: I am using Jess with Protege. I want to write a rule that says: run when you get an oject FOO with a non-empty slot called 'name' and where there is no fact foo with property bar equal to the slot value. I would intuitively wirte that this way:

Re: JESS: Which comes first, the chicken or the rule?

2005-12-13 Thread ejfried
I think Matthew Hutchinson wrote: Just a conceptual question... since starting with Jess, it always seemed to me generally you have the rules established first, then load in facts which in turn trigger these rules. No problems there. But is it proper to consider having the facts already in

Re: JESS: DefRule - Memory Leak

2005-12-09 Thread ejfried
I think Hariprasath Manivannan wrote: - Has anyone faced this issue with Jess5.0? If so please send the possible solutions. Jess 5.0 is unsupported. The last release of any version of Jess 5 was 5.2 in June, 2000; that's over five years ago. Jess has evolved considerably since then, and many

Re: JESS: defadvice before/after bug?

2005-12-09 Thread ejfried
I think [EMAIL PROTECTED] wrote: Am I wrong to say that the 'misfeature' mentioned below hasn't made it into a feature yet in the latest release 7.0 b4? Is there any plan to still add it in time for 7.0 final? I've written defadvice for every numeric Jess-function (+, -, *, /, , =, , =,

Re: JESS: Problems with SWT_AWT in Eclipse on MacOS X

2005-12-09 Thread ejfried
I think Dona Mommsen wrote: On MacOS X, Eclipse will crash with error: Can't start the AWT because Java was started on the first thread. Make sure StartOnFirstThread is not specified in your application's Info.plist or on the command line Yes, I can reproduce this on my Powerbook.

Re: JESS: Probelm with property change listeners in Jess7b4

2005-12-08 Thread ejfried
Hi, In Jess 7.0b3, the default for definstance type changed from dynamic to auto. If you specified dynamic as the last argument to definstance, then Jess would try to register itself with your Bean as a PropertyChangeListener; this used to be the default, so that you had to write static if you

Re: JESS: Bug?

2005-12-08 Thread ejfried
I think Yura wrote: [Charset koi8-r unsupported, filtering to ASCII...] Hi jess-users JessDE doesn't parse this rule (saying: 'TRUE' is a symbol, not an integer): (defrule rule (declare (salience (+ 1 1))) = ) whereas Jesp makes no complaints. Yep. I can reproduce this and now that you

Re: JESS: Re: Bug

2005-12-02 Thread ejfried
I think Yura wrote: I'm sorry - it's there in the manual. I should be more attentive. By my calculation, you've reported 4 bugs, and 3 of them were real -- so you're batting .750 . Seems like an excellent average to me! - Ernest

Re: JESS: Userfunctions and Jess - Java type conversion

2005-12-01 Thread ejfried
I think erich.oliphant wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hmm, ok thanks, I understand better now. However, jess.Userfunctions return Value's so is there anything I can do in that case to activate the type conversion? I tried Value.resolve() but that did not help.

Re: JESS: Userfunctions and Jess - Java type conversion

2005-12-01 Thread ejfried
I think erich.oliphant wrote: I tried that function, but it doesn't seem to exist on the jess.ReflectFunctions class (I am using 7.0 beta 4. There seems to be a a static Value a(Class, Object) throws JessException method based on browsing the class file. Could this be it? You're not using

Re: JESS: Fact object not in working memory error

2005-11-28 Thread ejfried
Most likely the problem is that some of your classes (perhaps com.ngc.dts.domain.common.PerDiemEntitlement) have mutable hash codes, making them unsuitable for use as keys in a hash table (try using one of these objects as a key in a HashMap, change the values of some properties, then try to look

Re: JESS: Editor couldn't be initialized

2005-11-23 Thread ejfried
I think Yura wrote: I'm receiving the Editor couldn't be initialized when trying to open clp-files in Jess70b4-editor (yes, I tried the -clean switch). Jess70b3 works well. Can anybody help? JessDE 7.0b4 now requires Eclipse 3.1 -- the sudden changeover with this particular version wasn't

Re: JESS: Template Hierarchy

2005-11-22 Thread ejfried
I think Jeffrey Davine wrote: Perhaps the place to ask this question is the Constantine Planning Wiki - but would it be difficult in the next version of Jess to implement a hierarchical template structure? ... (deftemplate Individual extends LegalAgent OK, let's get in the time machine...

Re: JESS: Size of an activation record

2005-11-22 Thread ejfried
I think Roger Studner wrote: Is there (I read something 'akin' to this in the mailing archive) a big performance hit as well? I like to use beans/shadow facts for a variety of reasons, but have always been under the impression that when i'm going to assert a 'huge' number of a particular

Re: JESS: Conflic Resolution Implementation

2005-11-21 Thread ejfried
There's no tutorial guide or anything like that. The basic procedure is very easy: implement the jess.Strategy interface, then use (set-strategy classname) to load it into Jess. There's really just the one compare() method to write; it's supposed to implement the spaceship operator (ie.,

Re: JESS: Object to built-in type

2005-11-18 Thread ejfried
I think Roger Studner wrote: v = new Value(l, RU.SYMBOL); ... v = new Value(i, RU.SYMBOL); For the record, note that both of these lines will throw exceptions at runtime. To contstruct an RU.SYMBOL from a numeric type, you have to convert the value to a String yourself and pass that String to

Re: JESS: Converting Object to Object[]

2005-11-17 Thread ejfried
Jess's usual representation for arrays is a Jess list -- is that what you're looking for? There isn't a public API built into Jess for turning an array into a List, but now that you're pointing out the need, it seems like a good addition. For now, though, your obj2array function is the best way

Re: JESS: Debugger

2005-11-16 Thread ejfried
I think Jeffrey Davine wrote: I'll do the research, but as a general matter, do you think the Jess API exposes enough information (particularly concerning the rete tokens) so that I could write such a tool? Alan's more optimistic, but I myself don't think this can really be done at the level

Re: JESS: slot-specific and multifields

2005-11-15 Thread ejfried
along at home, is [EMAIL PROTECTED] Jess]$ cvs diff -r 1.5 -r 1.6 jess/Node1MTMF.java Index: jess/Node1MTMF.java === RCS file: /home/ejfried/cvsroot/Jess/jess/Node1MTMF.java,v retrieving revision 1.5 retrieving revision 1.6 diff -r1.5

Re: JESS: variable facts

2005-11-11 Thread ejfried
I think =?iso-8859-1?Q?=5BEXTERN=5D_Manuel_Kollmu=DF?= wrote: Isn_t it possible to assert a variable as a fact or a variable fact? like this: (bind ?var number1) _. (assert (?var)) No, the type of the fact must be known when the call to assert is compiled. You can use an extra level of

Re: JESS: Or problem

2005-11-11 Thread ejfried
I think mauricio rincon wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hi... I have a problem with OR (v) operator. I_m using this operator in a rule, that should be fired only once when both of the conditions happened . The problem is that if both events are happening, the

Re: JESS: Multifield matching nil

2005-11-11 Thread ejfried
I think Steve Solomon wrote: This is a minor complaint. Why can't one use nil to match an empty list? Short answer: because Jess inherited its basic rule language semantics from CLIPS, and that's how it works in CLIPS. Only the pattern (sprocket ?id) matches (sprocket 2) with no following

Re: JESS: Strange Jess / Eclipse crash

2005-11-09 Thread ejfried
I think Matthew Hutchinson wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] G'day everyone, This is more of an Eclipse question, however, I only get this error when trying to open CLP files. Eclipse with Jess has been working fine for weeks, and now suddenly Eclipse completely

Re: JESS: Strange Jess / Eclipse crash

2005-11-09 Thread ejfried
I think Matthew Hutchinson wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hi, Actually, I have already got the full version from Craig and it works fine. Also, my classpath and eclipse stuff is all set to the full version jar file also. Good, but be that as it may, one can

Re: JESS: Checking if a fact exists

2005-11-09 Thread ejfried
I think [EMAIL PROTECTED] wrote: (defrule rule1 (x1 value1 ?cf1) (x2 value2 ?cf2) (x3 value3 ?cf3) = (assert (x3 value3 (min ?cf1 ?cf2 ?cf3))) Perhaps this rule should retract or modify the existing fact, rather than asserting a second one, as this does?

Re: JESS: String to Symbol

2005-11-08 Thread ejfried
I think Roger Studner wrote: (defrule count-icd9-codes ?c - (accumulate (bind ?count 0) ;; initializer (bind ?count (+ ?count 1)) ;; action ?count ;; result (encounter (code ?c : (eq ?c 440))) ) ... This (and anything in the accumlates match

Re: JESS: Behavior change from 6.1p7 to 7.0b3 with modify function

2005-11-08 Thread ejfried
I think Jon Weygandt wrote: it looks like modifying a fact sometimes requires the equivalent of: For each slot modified { Retract the fact Set the slot Assert the fact } Yes, more or less. Special versions of retract and assert can be used to cut a few corners in this

Re: JESS: How does the pattern match: ?trans_state SI | MI | EI

2005-11-08 Thread ejfried
I think Jon Weygandt wrote: Jess, That's her picture on the cover of Jess in Action :) (TRANS_STATE ?trans_state SI | MI | EI) My procedural view would be the pattern is evaluated as: (TRANS_STATE (?trans_state SI) | MI | EI) And if the match for SI fails, not sure what

Re: JESS: String to Symbol

2005-11-08 Thread ejfried
I think Roger Studner wrote: (deftemplate employee (slot salary)) (deffacts employee-facts (employee (salary 1007700)) (employee (salary 1002347700)) (employee (salary 107712000)) ) (watch all) (reset) (defrule count-highly-paid-employees ?c - (accumulate (bind ?count 0) ;;

Re: JESS: RE: Understanding JESS

2005-11-04 Thread ejfried
I think Daniela CLARO wrote: However I have more two questions, the first one I thought that (reset) clear my knowledge base, I mean, my facts, rules, all things and actually it doesn't. What is the command I can use to clear my knowledge base? There's a chapter entitled The Jess Function

Re: JESS: String to Symbol

2005-11-03 Thread ejfried
I think [EMAIL PROTECTED] wrote: How can I convert a string into a symbol? In Java, String string = whatever; Value symbol = new Value(string, RU.SYMBOL); In Jess, (bind ?string whatever) (bind ?symbol (sym-cat ?string)) -

Re: JESS: empty list pattern and ppdefrule

2005-11-03 Thread ejfried
I think Jonathan Sewall wrote: However, in Jess v7.0b4, ppdefrule omits the (data ) pattern from its output. Is our simpler syntax for testing multislots unsupported? Many thanks, Seems to work as ever; this is apparently just a bug in the pretty-printer. Thanks for the report.

JESS: Announcing Jess 7.0b4

2005-11-02 Thread ejfried
Hi Folks, We're pleased to announce the availability of the latest release of Jess, the rule engine for the Java platform, at the usual location: http://herzberg.ca.sandia.gov/jess/download.shtml This release adds a lot of polish to Jess 7 as we approach the final version. There are a number

Re: JESS:Modular deffacts problem

2005-11-02 Thread ejfried
I think David Firmin wrote: I'm trying to use deffacts with a specific module, but am having some problems changing out of that module once the deffacts has taken place. At present, I'm doing the following (although I've simplified the code here, the sense remains the same): I'm afraid

Re: JESS: multiple shadow fact templates

2005-11-02 Thread ejfried
I think Scott Moss wrote: The order in which rules are fired depends first on the conflict resolution strategy, but if two rules are of equal priority by that criterion, then they'll fire in an arbitrary order that just falls out of the Rete network implementation. That order is affected by,

Re: JESS: WebSite navigation

2005-10-31 Thread ejfried
I think Daniel B. Davis wrote: All browsers I have tested show the navigation items on the web site as too small to read.nbsp; These include: ul liMozilla Firefox 1.0 liNetscape Navigator 7.1 liInternet Explorer 6.0 /ulThese are the ones high on the left-hand side of the page, rendered in

Re: JESS: MethodNameComparator generates error in 70b3

2005-10-26 Thread ejfried
I think Semmel, Glenn S wrote: I looked at the source files and noted the following differences: 70b3's compare() ends with: return ((String) o1).compareTo(o2); Whereas 70a4's compare ends with: return ((String) o1).compareTo((String) o2); Interesting! If you look at the

Re: JESS: exists description in the documentation missing?

2005-10-26 Thread ejfried
I think Fred Janon wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] I am reading the Jess in Action book and noticed that it lists exists as a Jess' CEs but I could not find it in the online doc for version 6.1. It's here, in chapter 2:

Re: JESS: Converting from/to strings

2005-10-24 Thread ejfried
I think Henrique Lopes Cardoso wrote: (defrule r1 ?x - (foo) = (bind ?string (implode$ ?x)) ;; IS THERE A WAY OF DOING THIS? ?x is a jess.Fact object. You can call any of the methods of jess.Fact on it -- including toString() and toStringWithParens(), one of which

Re: JESS: Jess in a multithreaded environment

2005-10-24 Thread ejfried
I think Florian Fischer wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hello, I am using Jess in a multithreaded environment... I need to understand how Jess works in a multithreaded environment. Is the following description correct? - One lock is on all the data (facts,

Re: JESS: Jess in a multithreaded environment (Copies of the fact data)

2005-10-24 Thread ejfried
Ultimately, of course, a Fact is an array, with one element for each slot. When you compile a rule, the rule compiler will look up the names of any slots that are mentioned, and it's the index of the slot that gets compiled into the rule. On the other hand, fact-slot-value is a function that has

Re: JESS: TextArea Buffer Size

2005-10-21 Thread ejfried
I think Semmel, Glenn S wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hello. Under Jess 7.0a4, the TextAreaWriter class has the following attribute: private static final int MAXSIZE = 3 In a future release, can this attribute be changed to be either a user

Re: JESS: jess

2005-10-20 Thread ejfried
I think =?iso-8859-1?Q?=5BEXTERN=5D_Manuel_Kollmu=DF?= wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] hi is it possible to read out informations from a *.dll and to handle the return value (string)? Sure, in the same way you'd do it from any Java program: you wrap the DLL

Re: JESS: Using not and and

2005-10-19 Thread ejfried
I think Dusan Sormaz wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] I was able to run it in 7.0a6. I am curious, what is the interpretation of and in this example? Is it AND of 4 items? or only 2? 2. It means that there's not a (bar ?x) fact where ?x is the fact (a b c).

Re: JESS: Using not and and

2005-10-19 Thread ejfried
Hmmm, OK, I see. This is a known issue which has (as another poster pointed out) been dealt with in Jess 7. In Jess 6, the workaround is to reverse the order of these patterns: (not (and ?b - (a b c) (foo (bar ?b)) ) ) I think Henrique Lopes Cardoso wrote:

Re: JESS: JessDE buggy

2005-10-14 Thread ejfried
I think Jim Goodwin wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Are you interested in bug reports? Where do I send them? Very interested. You can send them to this list or directly to me at [EMAIL PROTECTED] Is further work on the JessDE active right now? Absolutely.

Re: JESS: New to JESS

2005-10-11 Thread ejfried
In the first screenshot, I see an editor window named awtdraw.clp, but I don't see a file by this name in the navigator view; my guess, then, is that you've used the Eclipse File | Open... menu to try to open a file not in your workspace. This doesn't work. You can only edit .clp files that are

Re: JESS: New to JESS

2005-10-10 Thread ejfried
I think nikita berdikov wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hello, I'm new to Eclipse and JESS, so can anyone tell me how to start working with JESS in Eclipse 3.1. What variables should i set? I did everything that is written in Using the JessDE, but something is

Re: JESS: So lame, and so sorry - disregard last post

2005-10-10 Thread ejfried
I think Matthew Hutchinson wrote: So it's not a complete waste, is the following line still the reccomended way of loading rules from Java? engine.executeCommand((batch jess_test.clp)); In Jess 7, there's a Rete.batch() method you can use instead; otherwise, what you've shown works fine.

Re: JESS: The JessTab PAL-integration functions are not available

2005-10-10 Thread ejfried
I think Eunice Palmeira wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hello, I have a problem when i try run Jess with Protigi: JessTab: Note that the PAL engine is not currently installed in Protege. (The JessTab PAL-integration functions are not available.) Well,

Re: JESS: For-loop bug

2005-10-10 Thread ejfried
You're right -- that's not the correct behavior. Thanks for the report. I think Yura wrote: [Charset koi8-r unsupported, filtering to ASCII...] Hi I think there is a bug in the 'for'-loop implementation. The following code returns '1' (incorrect): (bind ?x 1) (for (bind ?i 1) ( ?i 2)

Re: JESS: Jess DE JSR-94

2005-10-05 Thread ejfried
I think erich.oliphant wrote: Hi, We are using the JSR-94 interface but would like to use JessDE for debugging,etc. Will jessDE support the XML formatted files required by the JSR-94 interface ? There are two JSR94 drivers. There's the reference implementation that comes with the JSR94

Re: JESS: Problem with definstance

2005-10-05 Thread ejfried
I think David Firmin wrote: I'm trying to create shadow facts that subclass a deftemplate that's already been added to the Rete. When I try and add the java bean using definstance I get a ClassCastException as follows: java.lang.ClassCastException at

Re: JESS: Central data storage for multiople Jess instances

2005-10-05 Thread ejfried
I think Bogdan Werth wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hello everybody, I working on the model from the field of social simulation. I am using RePast and Jess to make my agents think in a declarative way. At the moment I have a separate Jess instance for every agent

Re: JESS: Matching a static variable

2005-10-03 Thread ejfried
Hi Erich, First, let me mention that I'm happy to see someone using the brand-new static imports feature -- the thing that lets you use (CarClass.MINI) as a constant. Second, your code looks fine except that the defclass defines a short template tag RentalCarReservation, but the rules are using

Re: JESS: Facts and modules

2005-09-30 Thread ejfried
I think Henrique Lopes Cardoso wrote: So, if I understood correctly, facts can only be asserted in the module where their templates are defined Yes. Therefore, if I have a template defined in MAIN, I cannot create a fact based on that template in another module. Right. Another

Re: JESS: How to write constraint for shadow fact list/set properties ?

2005-09-14 Thread ejfried
I think robert fields wrote: Classes are loaded from java by Jesp j = new Jesp(new StringReader((defclass {Role, ...} package.{Role,})), aEngine); j.parse(false); The Rete class has a defclass method which would be much more convenient to use! Barring that, it also has an

Re: JESS: Comparing string

2005-09-09 Thread ejfried
Jess doesn't have an explicit else-if feature; if you put an if into the else of another if, then that second if is a separate function call, so it needs its own parentheses. If I may, I will point out a few other things here: You don't need to spell out the names of any classes in java.lang, as

Re: JESS: Pattern Binding for CE

2005-09-09 Thread ejfried
I think Krasnigor, Scott L (N-AST) wrote: I have an ID slot defined for the Bean object used to define the facts but can't seem to figure out how to get the fact that triggered the rule so I can modify it for this particular case (all my other rules allow pattern binding). I formatted your

JESS: Announcing Jess 6.1p7

2004-05-07 Thread ejfried
Hi Folks, I am pleased to announce that version 6.1p7 of Jess, the rule engine for the Java platform, is now available for download at the usual place: http://herzberg.ca.sandia.gov/download.shtml This is a bug fix release with some improved performance characteristics. From the change log:

Re: JESS: Pausing the execution cycle without returning

2004-05-07 Thread ejfried
I think Steffen Luypaert wrote: The basic trick is this: From one rule, set up the GUI to ask a question, then call ((engine) waitForActivations), which pauses the (run) thread until a new rule is activated. The problem is that waitForActivations will still fire the

Re: JESS: Combining the logical CE and backward chaining

2004-05-05 Thread ejfried
I think Steffen Luypaert wrote: Hi all, No backward chaining will occur for patterns inside a conditional element. I was wondering that this will change in a future version of Jess, especially for the logical conditional element. This is basically an oversight in the rule compiler;

Re: JESS: JessAgentTab

2004-04-28 Thread ejfried
I think Chintan Shah wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Can you please provide the fully qualified server name in the url. http://www-i4 does not work for anybody outside your DNS. It the same as his email;

Re: JESS: Problem updating shadow fact data

2004-04-27 Thread ejfried
I think Michael Knapik wrote: ;;(call event setConditionCodeId ) Variables always have a ? in their name: (call ?event setConditionCodeId ) (modify 2 (conditionCodeID )) Slot names are case-sensitive: (modify 2 (conditionCodeId ))

Re: JESS: Problem updating shadow fact data

2004-04-27 Thread ejfried
I think Michael Knapik wrote: (defrule report-subject-and-event-status ?s - (subject (subjectId ?sId) (caseStatusId ?csId)) ?e - (event (eventId ?eId) (conditionCodeId ?ccId)(eventDescriptor ?evtDescriptor)) = (modify ?e (conditionCodeId )) (printout t * Event ?eId has a condition

Re: JESS: Passing an instance of Rete to java

2004-04-23 Thread ejfried
I think Greg Biegel wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hi, Is there a way to pass a reference to the current instance of the rule engine from Jess, to a Java object. I tried using the 'this' keyword, but doesn't seem to work. So basically, I would like to

Re: JESS: jess.Console question

2004-04-22 Thread ejfried
I think Maxim Tretyak wrote: Hi Can I get advantages of jess.Console by such a way: Jess (new jess.Console Hi (engine)) External-Address:jess.Console Console is appearing, but connand line input is transmitted directly to output text area, without interaction with Rete. Very clever!

Re: JESS: Getting detailed match information

2004-04-21 Thread ejfried
I think Douglas Pearson wrote: For example if I had: (defrule simple-rule (child (id ?x) (name ?name)) (parent (id ?y) (child ?x)) = (printout t Child ?x name ?name crlf) ) and I know fact-3 and fact-7 were matched...how can I tell (programmatically) which fact

Re: JESS: Question about defquery

2004-04-15 Thread ejfried
I think Lakshmi Vempati wrote: I am using a simple defquery to find a fact and then modify it. For reasons that are too difficult to go into (although we've actually discussed it before on this list) when you get a jess.Fact out of a jess.Token (as you do when you're working with a query