Re: JESS: Matching symbols against strings

2001-06-08 Thread ejfried
I think Thomas Gentsch wrote: > > U, no way to define the Java class in any way? Otherwise I'd have to > touch all the rules ... Well, if that's what you want to do, sure. You could change the String property into a property of type jess.Value. Let's see. The property would just look like

JESS: unsubscribe

2001-06-08 Thread Neil Chinnery
unsubscribe _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROT

Re: JESS: Matching symbols against strings

2001-06-08 Thread Thomas Gentsch
U, no way to define the Java class in any way? Otherwise I'd have to touch all the rules ... Thanks a lot, tge friedman_hill ernest j wrote: > > You can use str-cat to turn a symbol into a string: > > (defrule update-simple >?f <- (The simple object ?id is ?val) >?o <- (Si

Re: JESS: Matching symbols against strings

2001-06-08 Thread ejfried
You can use str-cat to turn a symbol into a string: (defrule update-simple ?f <- (The simple object ?id is ?val) ?o <- (Simple (OBJECT ?s) (name ?&=(str-cat ?id))) => ... ) I think Thomas Gentsch wrote: > > I have another one ... :~) > > When extending the 'Simple' e

Re: JESS: Calling a clips file within the Jess shell

2001-06-08 Thread Thomas Gentsch
Use (batch a.clp) Admittedly I haven't tried that from within an (if ...) but that's the way it works in general. tge Mark Gargan wrote: > > Hi there, > I'm quite new to Jess and was wondering if anyone had come across a > way to run a .clp file from within the Jess shell as

JESS: Matching symbols against strings

2001-06-08 Thread Thomas Gentsch
I have another one ... :~) When extending the 'Simple' example a little, I encountered a problem, I understand but have no idea yet, how to do it right. The class 'Simple' is defined as: public class Simple { private String m_name; ... Now, if I have a rule: (defrule update-simple ?f <

JESS: Calling a clips file within the Jess shell

2001-06-08 Thread Mark Gargan
Hi there, I'm quite new to Jess and was wondering if anyone had come across a way to run a .clp file from within the Jess shell as the result of an if expression? e.g. ((if a== true) then ('run a.clp))?? I hope this is not too much of a stupid question.. Thanks again, Mark. ---

Re: JESS: Retrieve Rete Engine in Java

2001-06-08 Thread Thomas_Barnekow
Hi! >Here is my problem. I wrote a Java Class which goal is to >retrieve informations in a database and write these >informations as Jess facts. I'd like to call this Class >within Jess, but I don't know how to retrieve the >engine which has called the Java Class, in the Java >Class itself. You

JESS: Retrieve Rete Engine in Java

2001-06-08 Thread Emmanuel ROHMER
Hello, Here is my problem. I wrote a Java Class which goal is to retrieve informations in a database and write these informations as Jess facts. I'd like to call this Class within Jess, but I don't know how to retrieve the engine which has called the Java Class, in the Java Class itself. Thanks.