Re: JESS: Maintaining session in JESS

2008-06-25 Thread Ernest Friedman-Hill
On Jun 24, 2008, at 2:51 PM, Deepak Pol wrote: Now following are some questions I have: 1. Since the rules defined are being applied to any data, I want the rules to be created once and shared by different sessions for different data. For eg there can be a rule which says if total 100

Re: JESS: Maintaining session in JESS

2008-06-25 Thread Wolfgang Laun
Deepak Pol wrote: Now following are some questions I have: 1. Since the rules defined are being applied to any data, I want the rules to be created once and shared by different sessions for different data. For eg there can be a rule which says if total 100 then return list of users u1, u2 and

Re: JESS: NRL for Jess

2008-06-25 Thread Michael Smith
On Jun 24, 2008, at 8:53 AM, Peter Lin wrote: I'm going to disagree that NRL is an anti-pattern. OK. It all depends on how you use it. Agreed... though since I having a tendency to be querolous, I'd change how to when. I've successfully designed and built custom business rule

JESS: How to parse the Conditions ?

2008-06-25 Thread benders
Hi, I am trying to parse this .clp file from the documentation. (deftemplate person (slot firstname) (slot lastname) (slot age)) (defrule welcome-toddlers Give a special greeting to young children (person {age 3}) = (printout t Hello, little one! crlf)) Here my Code: public static void

Re: JESS: NRL for Jess

2008-06-25 Thread Peter Lin
the cost versus benefit definitely is an important consideration. In the past, I built custom languages for privacy rules and regulatory compliance rules, which are sufficiently narrow. I definitely wouldn't attempt a DSL for general business rules. That will most likely result in a nightmare.

Re: JESS: How to parse the Conditions ?

2008-06-25 Thread Ernest Friedman-Hill
On Jun 25, 2008, at 7:12 AM, benders wrote: Hi, I am trying to parse this .clp file from the documentation. You've already parsed it with the parseExpression line. I'm not sure what you're trying to do after that, but it's not parsing. Just examining the data structures for the rule? If

Re: JESS: How to parse the Conditions ?

2008-06-25 Thread Wolfgang Laun
You have to determine the class of a ConditionalElement (this is an interface for things common to Pattern, Group and Accumulate. If it is a Pattern, you proceed by iterating over the tests, either thos in a particular slot or over all. Add this after your println: if( e instanceof Pattern ){

Re: JESS: Clues on the Crash-On-Save issue

2008-06-25 Thread Henrique Lopes Cardoso
Hi, Just letting everybody know that I have the problem again... Eclipse EE + Jess 71RC1 + Subclipse = random crash on save Don't know if Subclipse brings anything new, though... Cheers, Henrique Jason Morris wrote: Hi Henrique, I just did the same thing since I was crashing Eclipse

Re: JESS: Clues on the Crash-On-Save issue

2008-06-25 Thread Jason Morris
Hi Henrique , I know. :-) Mine still does it too. I guess all the other Jess users just aren't doing it right. :-D I use the latest stable Subversive plugin for my SVN, but that doesn't seem to affect stability. What does is when I try to run Jess on an Eclipse install that has the

Re: JESS: Clues on the Crash-On-Save issue

2008-06-25 Thread Ernest Friedman-Hill
I definitely believe you, I just don't know how to proceed. Any stack traces or other info about a hung Eclipse instance would be most welcome. On Jun 25, 2008, at 12:00 PM, Jason Morris wrote: Hi Henrique , I know. :-) Mine still does it too. I guess all the other Jess users just

JESS: installing JessDE

2008-06-25 Thread seyed hossein
Hi It's been more than a month for me trying frustaingly to install the JessDE on Eclipse but they all failed. To install JessDE, I've downloaded both the Eclipse Classic 3.4 and the Eclipse IDE for Java EE Developers from the Eclipse website, then saved them both on my desktop, installed and ran

Re: JESS: installing JessDE

2008-06-25 Thread Gary Napier
Hi Seyed, I've personally not tried JESS in 3.4 yet. (it get's officially released today), however i wouldn't expect any major problems due to backward compatibility. Please could you go into help-software updates - manage configuration. You should have 3 buttons, that show various groups in

Re: JESS: installing JessDE

2008-06-25 Thread Jason Morris
Hi Seyed, It's been more than a month for me trying frustaingly to install the JessDE on Eclipse but they all failed. Hers is another thing that you may want to try: You said that you installed Eclipse to the Windows Desktop. Typically, the DOS path to the desktop looks like: C:\Documents and