Re: JESS: Firing order

2005-11-20 Thread Alan Moore
Nicolas Fortin wrote: Hello everybody, I am wondering if it is possible to randomize the firing order, You can create an object that implements the jess.Strategy interface, see: http://herzberg.ca.sandia.gov/jess/docs/70/api/jess/Strategy.html You will implement the compare() method and

Re: JESS: Debugger

2005-11-17 Thread Alan Moore
[EMAIL PROTECTED] wrote: 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

Re: FW: JESS: Debugger

2005-11-16 Thread Alan Moore
Jeffrey, I created a debugger quite a few years back (Jess version 4.xx) that I have not maintained. I'd have to locate the media it is archived onto but I've been wanting to resurrect it. It didn't do exactly what you want and it was pretty crude since it was fronted by the Windows

Re: JESS: Jess error: Bad index

2005-11-01 Thread Alan Moore
Eunice, Please provide the exact code and error messages you are getting. Please try to figure out whether the problem is with Protege, JessTab and/or Jess before posting to this list. For example, copy key portions (e.g. function names, exception names) of the stacktrace you are getting

Re: JESS: Converting from/to strings

2005-10-21 Thread Alan Moore
Henrique Lopes Cardoso wrote: Hi, I have two problems. --- The first: I have a string which contains an atom. How do I convert it to an atom? I tried this,which works: (bind ?string henrique) (nth$ 1 (explode$ ?string)) Is there a simpler way? I can't think of any at the

Re: JESS: Using multifields in LHS

2005-10-20 Thread Alan Moore
Or more simply: (assert (a nice string)) (assert (b nice)) ; note: nice (in quotes) won't work (defrule r1 (a ?x) (b ?y:(member$ ?y (explode$ ?x))) = (printout t Found! crlf) ) (run) i.e. a non-zero value from (member$) evaluates in the pattern above like a TRUE - or like (neq

Re: JESS: code works from java but not clp file

2005-10-11 Thread Alan Moore
Also, in testing.clp, you can place the following code to help you debug the exception: ;; untested...ymmv (try (bind ?user-agent (new User harvey)) catch ;; ?ERROR will be the caught throwable (printout t ERROR = (?ERROR toString) crlf) (printout t cause = ((?ERROR getCause)

Re: JESS: Blackboard Framework

2005-10-11 Thread Alan Moore
Scott, Someone else is likely to have a more relevant answer but I thought I'd give my 2 cents worth - it's been a while (15 years?!) so I hope I can remember this correctly... During my graduate studies I worked with Dr. Len Myers and others at CalPoly SLO on a BB based system that used

Re: JESS: Problems with Jess and Eclipse

2005-10-07 Thread Alan Moore
Matt, Whoops, sorry - I didn't see your attachment. alan [EMAIL PROTECTED] wrote: In the screenshot, you show that you've defined two classpath variables, one named source pointing to the source directory, and one named jess pointing to jess.jar. This is no guarantee that you've *used* those

Re: JESS: Matching a static variable

2005-10-03 Thread Alan Moore
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. [alan] Nice, this makes things a *lot* cleaner. Thanks! Third, let me mention, as I often do on this list (I really need to make this

Re: JESS: Matrixes in Jess

2005-09-30 Thread Alan Moore
Yuri, You can use any/all facilities that Java has for matrices since Jess has full (reflective) access to the Java/third-party matrix APIs - see: http://math.nist.gov/javanumerics/jama If you want to pattern match against elements in a matrix, you can use multifields or ordered facts. For

RE: JESS: How to stop firing rules??

2005-07-26 Thread Alan Moore
Felix, You have not given us much information about your problem so we will need more detailed information before we can help you. In general: 1) If you have one thread that has called the Rete#runUntilHalt() method, calling the halt() method (on another thread), or having one of your Jess

RE: JESS: Remove all references pointing to the retracted fact from the slots

2005-06-29 Thread Alan Moore
Try this: (deftemplate Person (slot Name (type STRING)) (multislot Ancestors) ) (assert (Person (Name a) (Ancestors (assert (Person (Name b))) (assert (Person (Name c))) ) ) ) (defrule removePersonReferences (remove-person ?name) ?person -

RE: JESS: Problem when modify facts when the facts is from a java object.

2005-06-06 Thread Alan Moore
Warning: HTML/RTF email - sorry for the broken mailer. I *promise* to get this fixed ASAP. There are several problems with your logic here: 1) Your rule should have triggered an endless loop of firing default-rule because the RHS modifies a fact matched on the LHS. See the Jess docs for the

RE: JESS: Java servlets

2005-05-19 Thread Alan Moore
I'm not sure I'm getting your question properly but servlets are generally associated with web based interfaces and not standalone GUI clients. In any case, if you are using servlets, I suggest that you maintain a Rete object instance in your HttpSession. If your application needs to scale to

RE: JESS: Jess with natural language

2005-04-19 Thread Alan Moore
Your description doesn't specify whether or not you are using console input or a swing/GUI or the hosting/container environment (e.g. browser/applet, java application, web services etc.) but I think you will find it easy to integrate Jess into just about any application. Your subject line

RE: JESS: Creating rules using the Jess API

2005-04-13 Thread Alan Moore
Jess 7.0 also provides a way to create rules via XML (JessML) which, depending on your requirements, may be the easiest (and possibly the slowest) way to go. See: jess.xml.JessSAXParser and: Jess70a4\examples\xml\sticks Jess70a4\examples\xml\mab I've not used this feature (yet) but I

RE: JESS: using Userfunctions

2005-03-22 Thread Alan Moore
To return more than one column value in a single UserFunction#call, you can create a container Value object and place all your returned columns into it. For example, your #call method could return: 1) A plain-old-java Iterator/array/Collection, etc. (RU.EXTERNAL_ADDRESS) that contains your

RE: JESS: batch routine error

2005-03-16 Thread Alan Moore
I don't know if this will help but you might try enclosing your file path in double quotes: (batch /home//rulebase.clp) alan __ Bleib immer locker From: [EMAIL PROTECTED] on behalf of Nicolas Fortin Sent: Wed 3/16/2005 6:06 AM To:

RE: JESS: Batch file question (unicode supported ?) (NOT text/plain - sorry)

2005-03-16 Thread Alan Moore
WARNING: HTML/RTF message - sorry, my crappy company provided mail client is broken and can't send text/plain... D-; Depending on the URI you pass into the (batch) command, you will read data from either a FileInputReader (file path) or from an InputStreamReader (URL). Either way, I think you

RE: JESS: JESS for a Data Quality project

2005-03-03 Thread Alan Moore
2) can scan a very large database trying to find exceptions [alan] The jess user contrib library: http://herzberg.ca.sandia.gov/jess/user.shtml has excellent framework written by Thomas Barnekow that you might want to take a look at. 3) where the rules used to identify exceptions can be

RE: JESS: executeCommand

2005-02-22 Thread Alan Moore
To trap jess events, such as rule firing, facts asserting, etc. see: http://herzberg.ca.sandia.gov/jess/docs/61/api/jess/JessListener.html alan __ Bleib immer locker From: [EMAIL PROTECTED] on behalf of Andreas Holzbach Sent: Tue 2/22/2005

RE: JESS: Java GUI in Jess: forgot to include Classpath

2005-02-08 Thread Alan Moore
Without the exact error message you are getting it is hard to help you. Can you please include your error message. It is possible that your classpath is pointing to an older version of your NamePAss class which does not contain the buildConstraints method. You might consider searching your

JESS: RE: Jess dependency on org.xml.sax.SAXException

2004-09-27 Thread Alan Moore
Uh, hold the phone... that class is supposed to be in JDK 1.4.2 and that's what I *should* be running against. I'll check my environment again. alan -Original Message- From: Alan Moore Sent: Monday, September 27, 2004 3:08 PM To: '[EMAIL PROTECTED]' Subject: Jess dependency

RE: JESS: Jess, pervasive computing,sensor networks and system requirements.

2004-09-08 Thread Alan Moore
I've done some reading about Jess and it looks like it's powerful enough to express the sort of rules we need in this project. For example, what the sensors should do when the river depth goes about a certain level and stuff like that. However, I haven't actually used Jess yet so is Jess really

RE: JESS: Muilti-line comments

2004-09-07 Thread Alan Moore
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, September 03, 2004 10:52 AM To: [EMAIL PROTECTED] Subject: Re: JESS: Muilti-line comments Another thing I will do in the engine is provide rule properties; you

RE: JESS: forall conditional element

2004-08-16 Thread Alan Moore
Title: RE: JESS: forall conditional element Did you do a (reset) before (run)? alan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Nicolas Fortin Sent: Monday, August 16, 2004 12:16 PM To: [EMAIL PROTECTED] Subject: JESS: forall conditional

RE: JESS: (reset) and (initial-fact)

2004-08-16 Thread Alan Moore
Title: RE: JESS: (reset) and (initial-fact) Could you introduce a new constructor with a switch controlling this behavior? The existing constructor could maintain the old behavior and anyone wanting the new behavior could use it explicitly. Alternatively, could you have a derived Rete (or

RE: JESS: Charlemagne info

2004-07-28 Thread Alan Moore
Title: RE: JESS: Charlemagne info Sweet! Can't wait... uh, er, I guess I have to. alan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, July 28, 2004 2:35 PM To: Jess Mailing List Subject: JESS:

RE: JESS: Very simple defquery question

2004-07-21 Thread Alan Moore
Title: RE: JESS: Very simple defquery question JZ, http://herzberg.ca.sandia.gov/jess/docs/61/language.html#queries This section of the manual has both a jess and java version of iterating through the query results - scroll down a bit, if necessary, to see the java code. See also:

RE: JESS: Least favorite error messages

2004-07-07 Thread Alan Moore
Title: RE: JESS: Least favorite error messages The worst error message is a silent failure... Here's one: Given a java class named Disbelief with a boolean property called really: (defrule jess-rules (Disbelief (really FASLE)) = ) The parser doesn't detect that the misspelled FASLE

RE: JESS: ant task for checking rule file syntax

2004-07-07 Thread Alan Moore
Title: RE: JESS: ant task for checking rule file syntax If your script to be checked does not call (run) or (run-until-halt) and contains primarily deffunction/defquery/defrule statements you can try: target name=checksyntax java classname=jess.Main classpath=jess.jar:other.jar arg

RE: JESS: Optimization Question

2004-07-07 Thread Alan Moore
Title: RE: JESS: Optimization Question Also, the following *might* be even faster - TBD: (defrule prevent-logout (ActionForward (path ?url:(neq (str-index Logout.do ?url) FALSE))) = ) You can move the _expression_ in the (test) up into the pattern if your _expression_ doesn't depend on

RE: JESS: Java bean binding and definstance

2004-07-06 Thread Alan Moore
Title: RE: JESS: Java bean binding and definstance First, the first argument to rete.definstance() (ds in the example below) must match the name you give in the first argument to the (defclass) (dimmer in the example below.) Second, in order to bind to an object you have definstanced, you

RE: JESS: JESS and instances

2004-06-30 Thread Alan Moore
Title: RE: JESS: JESS and instances How can I share facts between different instances of Rete? You can duplicate them, but not share them. However, you can share (via definstance) an instance of a java object between two instances of Rete. Your question was about facts which, as Ernest

JESS: Minor documentation error

2004-06-18 Thread Alan Moore
Title: Minor documentation error The users manaual has a small error. See section 8.75 - the get-salience-evaluation function is listed without () chars... 8.75. get-salience-evaluation should be: 8.75. (get-salience-evaluation) alan

JESS: Context.push()

2004-06-02 Thread Alan Moore
Title: Context.push() I'm trying to do the following: Context functionContext = engine.getGlobalContext().push(); functionContext.setVariable( xyz, new Value(myObj) ); Value retval = function.call(vv, functionContext); Object realRetval =

RE: JESS: Listening to Jess Events

2004-06-01 Thread Alan Moore
Title: RE: JESS: Listening to Jess Events 3. Instantiate a Rete object with engine = new Rete(Someclass.class) to register the context with engine. [alan] This isn't required to sink jess events. This constructor is for applets or EJB-style containers (I think.) 3. Register that

RE: JESS: Listening to Jess Events

2004-06-01 Thread Alan Moore
error in the LHS of one of your rules. I meant RHS of one of your rules. Of course, it is possible that there is an error on the LHS as well but that is more rare. alan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Alan Moore Sent: Tuesday, June 01

RE: JESS: Newbie Question: Pattern Matching ordered facts

2004-05-25 Thread Alan Moore
Title: RE: JESS: Newbie Question: Pattern Matching ordered facts Try: (deftemplate commitment (slot debtor) (slot creditor) (slot cond) ) (assert (commitment (debtor Amit) (creditor Jane) (cond money))) (defrule resolve-commitment (commitment (cond ?x)) = (printout t resolved crlf

RE: JESS: Java Beans

2004-05-21 Thread Alan Moore
Title: RE: JESS: Java Beans What I need is to have a Java program, may or may not be a bean, load Jess and a set of rules and 'pass' some object, a DOM document is a good example, and have the rules process the object. The manual has several places where this is documented, see:

RE: JESS: Java Beans

2004-05-21 Thread Alan Moore
Title: RE: JESS: Java Beans If that is the case, why is the listener required in any scenario? If the bean's properties are changed by your java code, jess needs to know about it. Unless your java code calls Rete#modify(), not likely, your bean will need to inform jess via the bean's

RE: JESS: keeping jess in a different file?

2004-05-20 Thread Alan Moore
Title: RE: JESS: keeping jess in a different file? I use a main.jess (or main.clp if you prefer) in a well known location and my java code just tells jess to parse that file. In main.jess, I (batch xyz.jess) all the other rules/files that might be needed. alan -Original Message-

RE: JESS: Re: Charlemagne engine preview

2004-03-24 Thread Alan Moore
Title: RE: JESS: Re: Charlemagne engine preview Also, is there any pre-release documentation on the use of the single-slot-activation feature? Download the software, and look in the release notes from the manual: The slot-specific declaration for templates. Deftemplate definitions can

RE: JESS: Jess Examples

2004-03-18 Thread Alan Moore
Title: RE: JESS: Jess Examples Robert, I can't share my code with you because it is the property of my employer. If you have a specific problem, go ahead and post it to the list and often times you will get sample code in a response. Also, troll the list archives as there is a lot of

RE: JESS: JESS web service

2004-03-09 Thread Alan Moore
Title: RE: JESS: JESS web service I've created web services (e.g. SOAP services) that use jess internally but there is nothing special about them. The code that uses jess is just like any other java program, just that it is invoked via a SOAP packet. I used Apache Axis to create the

RE: JESS: Case Based Reasoning with Rules

2004-02-27 Thread Alan Moore
Way back in the day (circa 1990), I worked on the ICADS (now called CADRC) project at CalPoly SLO that did similar things for Architectural design CAD systems. Pretty cool... See: http://www.cadrc.calpoly.edu/ I'm sure this can be done for other domains as well. alan -Original

RE: JESS: Creating functions with the same name

2003-11-21 Thread Alan Moore
Not sure if this helps you but... While (deffunctions) cannot be overloaded, you can write a Userfunction (in Java) which receives a variable number of arguments via the ValueVector parameter. alan -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 11/21/2003 5:34 AM

RE: JESS: Help on Jess under the hood! :) ..

2003-11-05 Thread Alan Moore
For a graphical view of a modern Rete network try: (load-package jess.ViewFunctions) (view) alan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dusan Sormaz Sent: Wednesday, November 05, 2003 4:50 PM To: [EMAIL PROTECTED] Subject: Re: JESS: Help on Jess

RE: JESS: Jess routers

2003-10-17 Thread Alan Moore
With just the (printout) command, I was able to print the values on the webpage. But after adding the codes to execute a clips file, the following error came up. org.apache.jasper.JasperException: Error on input stream [alan] A full stack trace (including nested cause) would help us help

RE: JESS: Jess article at TheServerSide

2003-10-08 Thread Alan Moore
Good to see Jess getting wider exposure. Are you going on a speaking tour next? How about a series of No Fluff, Just Jess conferences ;-D alan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 1:55 PM To: Jess Mailing List Subject:

Aspects and rules (was RE: JESS: Jason Morris interview)

2003-10-02 Thread Alan Moore
Right on. Good interview - I like the bits about back to the future ;-D Speaking of the future, I was lurking on aosd-discuss and the discussion: http://aosd.net/pipermail/discuss/2003-August/000887.html was about event vs. aspect oriented programming and I posted asking about how those compare

RE: AW: JESS: Working with collections

2003-09-17 Thread Alan Moore
This might be a good application for aspects (e.g. aspectj) or any of the various byte code weaving tools. I've often thought about jess' requirement on definstanced (dynamic) objects to implement property change events. This *could* be implemented at runtime by byte code weaving for existing

RE: JESS: Finding Facts by name within a Jess User Defined Functi on

2003-09-11 Thread Alan Moore
Use(defquery) See the manual: http://herzberg.ca.sandia.gov/jess/docs/61/language.html#queries or the JIAbook section 17.7 alan -Original Message-From: Jim VanDragt [mailto:[EMAIL PROTECTED]Sent: Thursday, September 11, 2003 10:09 AMTo: [EMAIL PROTECTED]Subject: JESS: Finding

RE: JESS: Finding Facts by name within a Jess User Defined Functi on

2003-09-11 Thread Alan Moore
Correction: JIA book section 17.7 should read: JIA book section 7.7 As it turns out, section 17.7 also discusses (defquery) - a lucky coincidence. alan -Original Message- From: Alan Moore Sent: Thursday, September 11, 2003 10:44 AM To: '[EMAIL PROTECTED]' Subject: RE: JESS: Finding

RE: JESS: Defrule ordering woes

2003-09-05 Thread Alan Moore
ordering woes I think Alan Moore wrote: I've employed this pattern repeatedly and it works like a charm. Throw in a FutureResult for good measure and you've got a fast, reliable, thread-safe system. This is indeed a good way to get the grouping semantic we're talking about; I did want

JESS: Enhancement request - (import)

2003-09-04 Thread Alan Moore
Would it be possible to have the (import) function fail or give a warning when the specified package and/or class doesn't exist. Currently, (import com.package.doesnt.exist.MyMispeledClass) doesn't give any indication that something is wrong. alan Alan Moore - mailto:[EMAIL PROTECTED

RE: JESS: Defrule ordering woes

2003-09-04 Thread Alan Moore
My only concern is whether to expose the complexity to the user. On the one hand, control is good; on the other hand, hard-to-understand features don't get used. Here, I'm tempted to simply make the entire RHS of every rule atomic in this sense, w.r.t. the agenda, because, consider this: no

RE: JESS: Defrule ordering woes

2003-09-03 Thread Alan Moore
Sorry to revisit this issue but I had a couple of comments. See below. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 8:12 PM To: [EMAIL PROTECTED] Subject: Re: JESS: Defrule ordering woes snip/ Now, the underlying Jess behavior that

RE: JESS: Single-slot activations

2003-08-28 Thread Alan Moore
Another question... Given patterns like: (defclass MyObject com.myco.MyObject (activate PER-SLOT)) (defrule does-this-match (MyObject) = ) (defrule should-activate-when-object-exists (other) (not (MyObject)) = ) How would these patterns work? Since *no* slots are mentioned it isn't

RE: JESS: Newbie problem description and help request

2003-07-21 Thread Alan Moore
The new Jess in Action book has a number of examples that can help you. The hardcopy isn't available yet, but the e-book works great for me! alan -Original Message- From: PECK, JOSH (SBCSI) To: '[EMAIL PROTECTED]' Sent: 7/21/2003 7:01 AM Subject: JESS: Newbie problem description and

RE: JESS: Open Source Java IDE

2003-06-30 Thread Alan Moore
I prefer NetBeans (http://www.netbeans.org) primarily because it does other things besides java, e.g. .jsp/html editing. Maybe I haven't downloaded all the right bits for eclipse so there might be some plug-ins I don't know about yet. alan -Original Message- From: [EMAIL PROTECTED] To:

RE: JESS: Convert a string to integer

2003-06-11 Thread Alan Moore
try: (bind ?x (call Integer parseInt 25)) (disclaimer: not tested - your mileage may vary) alan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 12:44 PM To: [EMAIL PROTECTED] Subject: JESS: Convert a string to integer Hi all, This

RE: JESS: retracting a fact based on time?

2003-06-11 Thread Alan Moore
You could assert a checkpoint fact, such as (checkpoint ?timestamp), and then later retract all facts asserted after this timestamp by comparing the fact-id of the checkpoint fact. This technique assumes: a) fact-id's are increasing numeric values b) you haven't reached the max fact-id value

RE: JESS: more effecient jess debuging (long)

2003-05-30 Thread Alan Moore
You can certainly debug Jess under any Java debugger, but obviously you're going to be debugging at a low level. Our friend Alan Moore was workign on a Jess debugger at one point; not sure what happened to that project, Alan? [alan] I have written several versions of this. The coolest one

RE: JESS: more effecient jess debuging

2003-05-30 Thread Alan Moore
Also, for simple stop when this statement is reached kinds of debugging, I have resorted to creating a userfunction called, not surprisingly, (breakpoint). In this userfunction, I set a breakpoint in the java call() method and anywhere it is encountered in the jess script, it stops in my java

RE: JESS: more effecient jess debuging

2003-05-30 Thread Alan Moore
All java based debuggers work with java only. So that means that you can debug the jess engine itself (obviously) but not jess script/code. There are new features of the java jvm/debugging api's/class file format that allow non-java languages that compile down into java to be debugged at the

RE: JESS: Is it for me... (long)

2003-04-01 Thread Alan Moore
Jeff, My two cents worth and likely stating the obvious... Once you decide that you want to use a rule engine, be sure your execution is as good as your decision. Some things that can help are: Make a clear distinction between policy and mechanism -- which is just another way of saying that you

RE: JESS: Is it for me... (long)

2003-04-01 Thread Alan Moore
meant in the paragraph below, but I just thought I'd have one final comment and then go get my third cup of coffee for the day. It's 3:20 and I deserve it. Alan Moore wrote: Try not to let your rules don't rely too much on implicit control structures, like salience for example. Take the time

JESS: Problem with (not (exists (XYZ)))

2003-02-19 Thread Alan Moore
help identify the problem without my having to cook up another bean/threaded example. alan Alan Moore - mailto:[EMAIL PROTECTED] Ciphergen Biosystems - http://www.ciphergen.com To unsubscribe, send the words 'unsubscribe jess

JESS: (not) vs (not (exists))

2003-02-14 Thread Alan Moore
()... BTW - your newly updated online user manual has the following date: Version 6.1b2 (24 February 2003) alan Alan Moore - mailto:[EMAIL PROTECTED] Ciphergen Biosystems - http://www.ciphergen.com To unsubscribe, send the words

JESS: ConcurrentModificationException calling listDefinstances

2003-01-31 Thread Alan Moore
a lock object (or some other mechanism) I can use to make sure my access to the API is safe? alan Alan Moore - mailto:[EMAIL PROTECTED] Ciphergen Biosystems - http://www.ciphergen.com To unsubscribe, send the words 'unsubscribe jess

RE: JESS: How to get rule name

2003-01-30 Thread Alan Moore
I like the getCurrentActivation() idea. I imagine people could get into all kinds of mischief with that :) I was thinking of mischief but didn't want to mention it for fear it wouldn't happen for just that reason... alan To

RE: JESS: How to get rule name

2003-01-29 Thread Alan Moore
How about returning the rule itself? An alternative would be to return the current activation. My 2cts... alan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 5:33 PM To: [EMAIL PROTECTED] Subject: Re: JESS: How to get rule name

RE: JESS: JDBC ResultSet data

2003-01-07 Thread Alan Moore
Also, you could do one of the following within the Userfunction: 1) definstance your ResultSet object. 2) definstance application specific objects based on the data in your ResultSet. 3) assert the ResultSet data/rows as facts. #1 is pretty useless as you can't pattern match against the row data

RE: JESS: JavaBean String property doesn't match on LHSpattern.

2002-12-18 Thread Alan Moore
Change your rule to: (defrule tcr2 (tc (status fail) (OBJECT ?tc)) = (printout t Found match for status=fail crlf) ) Matching Strings on the lhs must be enclosed in quotes. alan -Original Message- From: Bijal Modi [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002

RE: JESS: updating and synchronization

2002-12-12 Thread Alan Moore
I think Bonnet was asking about property change/bean events - did I misread the question? alan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, December 11, 2002 8:16 PM To: [EMAIL PROTECTED] Subject: Re: JESS:

RE: JESS: Jess in Action book announcement

2002-12-12 Thread Alan Moore
Congratulations! alan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 12, 2002 3:02 PM To: [EMAIL PROTECTED] Subject: JESS: Jess in Action book announcement Hi Folks, Manning Press has put up a web page for Jess in Action, including a

RE: JESS: Problem matching String valued slot using an ATOM

2002-10-24 Thread Alan Moore
think Alan Moore wrote: Please help me understand when the automatic conversion is done and when it is not. LHS matching is done as if by the (eq) and (neq) functions. These do no conversions at all, and so values match in content and type. Conversion of function arguments

InvocationTargetException (was: RE: JESS: Still a problem whentrying to match an object in an object... Even more info)

2002-10-04 Thread Alan Moore
See manual section 4.1 re: getNextException() -- Jess is telling you that it called a Java method via reflection, and it threw an exception. You have to call getNextException.printStackTrace() to see it -- it will probably give you a clue! Would it be more appropriate for Jess to throw an

RE: JESS: definstance fails on first attempt and passes onnext?

2002-10-03 Thread Alan Moore
, and Jess will use it. You really need to get the JavaBeans spec from Sun to understand how to write one, but it's pretty easy. I think Alan Moore wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] I had a similar problem recently definstancing an object with a getSnapshot

RE: JESS: multiple Rete Engine.

2002-09-24 Thread Alan Moore
Is it possible that you asserted the same Fact object/instance into two different engines? alan -Original Message- From: Gang Liu [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 11:10 AM To: [EMAIL PROTECTED] Subject: Re: JESS: multiple Rete Engine. Thanks My

JESS: Defect (?) report

2002-09-24 Thread Alan Moore
But wait - there's more... After further investigation, the getNextException method on ?ERROR returns the following: java.lang.ClassCastException: java.lang.String I think the problem may be in my code. I think my own code is throwing this exception and being bubbled up through the

RE: JESS: Defect (?) report

2002-09-24 Thread Alan Moore
1:03 PM To: [EMAIL PROTECTED] Subject: Re: JESS: Defect (?) report I think Alan Moore wrote: Jess reported an error in routine call while executing (call ?futureResult get) while executing (bind ?result (call ?futureResult get)). Message: Called method threw

JESS: How to pause rule firing?

2002-09-19 Thread Alan Moore
Does anyone have a good technique for pausing rule firing? I tried to search the archives but the search function is broken at the moment... Here is my setup and requirements: 1) thread #1 calls runUntilHalt() in order to keep the engine running. The intent is to call halt() only when the

RE: JESS: How to pause rule firing?

2002-09-19 Thread Alan Moore
After reading: http://www.mail-archive.com/jess-users@sandia.gov/msg04691.html the answer to a) and b) are pretty clear - sorry for the redundant questions. alan -Original Message- From: Alan Moore Sent: Thursday, September 19, 2002 2:15 PM To: '[EMAIL PROTECTED]' Subject: RE

JESS: NumberFormatException during parse

2002-09-05 Thread Alan Moore
Ernest, From my experience debugging some jess code, I noticed that a NumberFormatException is thrown on a somwhat regular basis during parsing. I assume that some part of the parser is checking to see if a symbol is a number or not in order to determine RU.XXX types. Do you know how much, or

RE: JESS: Defclass doesn't find class?

2002-08-21 Thread Alan Moore
rete = new Rete(); try { [alan] Can you do this here? Class clazz = Class.forName(Session); My guess is that this doesn't work. rete.defclass(userSession, Session, null); } catch(Exception e) { System.out.println(ERROR IN DEFCLASS:

RE: JESS: ToString in class Defrule?

2002-08-21 Thread Alan Moore
try: Iterator it = rete.listDefrules(); while( it.hasNext() ) { Defrule defrule = (Defrule)it.next(); String ruleText = new jess.PrettyPrinter( defrule ).toString(); System.out.println(- + ruleText + -); } Note: this code has not been compiled/tested but should be a start... Good

JESS: Bean properties and rule activations

2002-08-13 Thread Alan Moore
Greetings, This is going to sound really dumb... I have a SimpleBean that has two properties property1 and property2. I also have two rules each matching one of the properties. When one of the properties changes, both rules fire even though only one pattern has a reference to the changed

RE: JESS: Re: Rules Transformed From XML

2002-07-26 Thread Alan Moore
The url you sent looks wrong, it should be: http://www.csee.umbc.edu/~finin/papers/iswc02/iswc02.pdf but this one gives the following: You don't have permission to access /~finin/papers/iswc02/iswc02.pdf on this server. alan -Original Message- From: tim finin [mailto:[EMAIL

RE: JESS: retracted facts seem to hang around

2002-07-18 Thread Alan Moore
I don't know if there is a problem beyond what is described in Ernest's earlier post but this should clear some things up for you (I am including the post here since I couldn't find a link to it in the archives... go figure): Good luck! alan Ernest's post from 7/3/02 Hi, Well, this

RE: JESS: help !!

2002-06-13 Thread Alan Moore
Your code has two declarations for the variable r, one is static at the class level and the other is local to the try/catch block in main. When your code in main uses the locally scoped variable which you set via new Rete(). The other is never set but used by the method mytest(). Good luck!

RE: JESS: facts and persistence

2002-05-23 Thread Alan Moore
Indeed I have noticed that the entity name, scott-dept was prepended by Main::, which made the system complain with some lame remarks :-) This is bad, very bad hacking, but it did the trick. I realize, however, that this shouldn't have happened in the first place. Any clues ? The

RE: JESS: facts and persistence

2002-05-23 Thread Alan Moore
: RE: JESS: facts and persistence le jeu 23-05-2002 à 23:47, Alan Moore a écrit : Indeed I have noticed that the entity name, scott-dept was prepended by Main::, which made the system complain with some lame remarks :-) This is bad, very bad hacking, but it did the trick. I

RE: JESS: JESS book?

2002-05-07 Thread Alan Moore
Bob - Just Do It(tm)!!! Ernest - was that enough? alan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, May 01, 2002 4:31 PM To: [EMAIL PROTECTED] Subject: Re: JESS: JESS book? I think S F Palu wrote: [Charset

RE: JESS: JESS EJB (The saga continues)

2002-03-19 Thread Alan Moore
Title: RE: JESS: JESS & EJB -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of rhalsey007Sent: Tuesday, March 19, 2002 3:45 PMTo: [EMAIL PROTECTED]Subject: JESS: JESS EJB (The saga continues) Hi all, Well, after much churning with

RE: JESS: JESS EJB (The saga continues)

2002-03-19 Thread Alan Moore
All: My apologies to the list for a broken mouse button and the resulting spurious email. I've been meaning to get another one... rhalsey007: In response to your post, I have a crude prototype of a Jess Web Service wrapper/engine in the works that is essentially a mapping into the Jess

RE: JESS: 1 or more Rete for sets of unrelated facts

2002-01-20 Thread Alan Moore
Ng Kia Bee, Each rete instance holds a context that includes not only your facts but also your rules. Depending on how you are organizing your system and your purpose, you may or may not need separate rete instances. In many simple cases one instance works just fine. However, if you need to

RE: JESS: java.lang.Boolean to Jess Boolean

2001-11-27 Thread Alan Moore
Try: Boolean ret = new Boolean(true); return new Value( ret, RU.EXTERNAL_ADDRESS ); Jess does not have a boolean in it's type system like it does for int and long. It does have the generic EXTERNAL_ADDRESS which can be any Object including Boolean. See the javadoc for the class RU or RU.java or

  1   2   >