Re: JESS: Rule firing an threads

2009-02-17 Thread Hal Hildebrand
Perhaps this will help? Basically, this Userfunction allows you to execute any arbitrary Jess function (whether it's a user function or not) and evaluates it with the configured Executor. You can control how this is done by configuring the right executor. For example, configuring the instance o

Re: JESS: Rule firing an threads

2009-02-17 Thread Ernest Friedman-Hill
A Jess lambda is a closure (more or less.) You can use variables from the enclosing scope. Here I am calling "printout" in a new thread, to print a variable defined in the current scope: ;; Define a variable (bind ?message "Hello, world!") ;; Print it in a new thread ((new Thread (implement

Re: JESS: Rule firing an threads

2009-02-17 Thread Matt Hutchinson
OK, thanks. However I am using a Userfunction - which takes a couple of parameters. How do I start the new thread for it and pass it the parameters? The only way to do this was with constructor parameters, but the Userfunction uses command line parameters. Thanks MH On Thu, Feb 12, 2009 at 12:5

Re: JESS: Query performance and Jess behavior

2009-02-17 Thread Ernest Friedman-Hill
On Feb 17, 2009, at 4:44 AM, Ksawi wrote: Thank you very much! Currently, I understand that I have not discovered the better way of querying :) So does it mean that the computational complexity of querying Jess in such way is O(FP), where P is the number of patterns in the query (is test

Re: JESS: Query performance and Jess behavior

2009-02-17 Thread Ksawi
Thank you very much! Currently, I understand that I have not discovered the better way of querying :) So does it mean that the computational complexity of querying Jess in such way is O(FP), where P is the number of patterns in the query (is test also treated as a pattern?), and F is the number o

JESS: multiple extends

2009-02-17 Thread Nopphadol Chalortham
Dear all I would like to create a fact that extends from two facts, for example the first fact is (deftemplate person (slot name) (slot age) (slot gender)) and the second fact is (deftemplate teacherR