JESS: general question about using module to control rule execution

2009-10-12 Thread Felix Chan
Hi, I have a general question how to control execution using modules. I have business rules that apply at the country (US) level, and rules that apply at state level. What I would like to do is to apply country-level rules first and then state-level rules second. The state-level rules will

JESS: question about a feature in Jess 7.1

2010-04-09 Thread Felix Chan
Hi all, On page 103 of Jess In Action, it says Note that in Jess 6.1, you can't use a variable to match the head of a fact or the name of a slot; these things must always be specified as literal values. This capability is planned for a future release, however. I am wondering if this capability

JESS: question about adopting jess

2010-04-27 Thread Felix Chan
All, I have been thinking about how to overcome potential objections in adopting Jess. I would like to get your suggestions on one such objection. It seems Jess has been built, maintained and improved by Ernest. What would happen to Jess if something happens to him? (I love Jess and I hope Ernest

JESS: question on retracting facts

2010-11-09 Thread Felix Chan
Hi, I am wondering what is the best practice of retracting one or more facts that fit a particular pattern. I am looking for something like this: (retract (car (make Honda) (model Civic) (year 1990)) The intention is to retract all car facts that satisfies a pattern. I am thinking writing a

JESS: question on slot specific

2011-06-12 Thread Felix Chan
Hi, I have been trying to understand the slot-specific functionality which is described in the JESS manual as follows: --- 6.18. The 'slot-specific' declaration for deftemplates Deftemplate definitions can now include a declare section just as

Re: JESS: question about writing rule that is based on comparing the number of one kind of facts and that of another

2011-07-10 Thread Felix Chan
Thanks Wolfgang. This is great. On Jul 7, 2011, at 5:54 AM, Wolfgang Laun wolfgang.l...@gmail.com wrote: On 7 July 2011 08:25, Felix Chan chanfe...@gmail.com wrote: Hi, I am trying to find a way to write a rule that is based on comparing the number of one kind of facts and the number

JESS: Would like to know why runQueryStar would not return any results

2011-07-18 Thread Felix Chan
Hi all, I am wondering if someone could help me understand why runQueryStar would not work for me in a certain scenario. Thank you in advance! First, I have the following script. It works as expected: (deftemplate DimmerSwitch (slot label) (slot brightness)) (defquery search-dimmer-switch