JESS: Re: [s] Help Jess C#

2007-03-02 Thread Délio

Pls i need help on this, im trying do developd a study, about the the
implementation of JESS in C#.net,
i think the only way possible is converting JESS in XML and then convert XML
to Rule engine suported by C#.net
dont kwon if this is possible
help me if anyone can pls, the finish of my graduation depend on this
-- 
View this message in context: 
http://www.nabble.com/Help-Jess-C--tf3265887.html#a9267148
Sent from the Jess mailing list archive at Nabble.com.


To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]




Re: JESS: Re: [s] Help Jess C#

2007-03-02 Thread Ernest Friedman-Hill

On Mar 2, 2007, at 5:21 AM, Délio wrote:



Pls i need help on this, im trying do developd a study, about the the
implementation of JESS in C#.net,
i think the only way possible is converting JESS in XML and then  
convert XML

to Rule engine suported by C#.net
dont kwon if this is possible
help me if anyone can pls, the finish of my graduation depend on this


You really haven't explained what you're trying to do. I don't know  
how implementation of Jess in C#.net, use Jess in C#.net, and  
converting JESS in XML and then convert XML to Rule engine suported  
by C#.net, could all mean the same thing to you. I guess you're  
using that odious IT manager definition of implement, defining it  
to mean something like use.


But in any case, you might consider using Jess as a rule server, as  
described in chapter 21 of Jess in Action. Wrap Jess in a simple,  
dozen-line server process which accepts Jess code and returns results  
just using the Rete.eval() method. You could make it a SOAP server to  
make it simple to talk to from C#.  For the last one, you might want  
to make a cup of tea, sit down, and have a good look at the Jess 7  
manual, which describes Jess's support for an XML rule language.


-
Ernest Friedman-Hill
Advanced Software Research  Phone: (925) 294-2154
Sandia National LabsFAX:   (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://www.jessrules.com




To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]




Re: JESS: Working with Exceptions

2007-03-02 Thread Ernest Friedman-Hill


On Mar 1, 2007, at 4:01 PM, Mrinal Khanvilkar wrote:


Hi,

Does anyone know how to catch exceptions in a RULE .
I mean like

(defrule someRule
comment
(Callhome (thing1 ?a)(thing2 ?b))
(try ( ?a ?b)catch (printout t they need to be integers crlf))
(test(eq ?b TRUE))
=
(printout t done crlf)
)

in the above case the engine throws me an exception when ?a and ?b  
happen to be strings and then it doesnt fire the remaining rules.
i dont want that. Instead i would want the engine to just ignore  
this rule if ?a ?b are strings.

can this be done.?



You'd have to put that try statement into a test conditional  
element, just like any other function call that's outside a pattern.  
Just make sure you return FALSE from the catch block, and it will  
halt pattern matching. Just something like


(test (try
( ?a ?b)
  catch
(printout t they need to be integers crlf)
FALSE))

ought to work fine.





-
Ernest Friedman-Hill
Advanced Software Research  Phone: (925) 294-2154
Sandia National LabsFAX:   (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://www.jessrules.com


To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]




JESS: Commenting JESS files

2007-03-02 Thread rand
Greetings!

Is there any way to do Java style commenting in JESS files?  Like anything
after /* and before */ is ignored by the loader?  It would sure make
coding a lot easier than having to put a ; at the beginning of every
line.

Rand





To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]




Re: JESS: Commenting JESS files

2007-03-02 Thread Ernest Friedman-Hill

On Mar 2, 2007, at 3:31 PM, [EMAIL PROTECTED] wrote:




Is there any way to do Java style commenting in JESS files?  Like  
anything
after /* and before */ is ignored by the loader?  It would sure  
make

coding a lot easier than having to put a ; at the beginning of every
line.



Jess 7 supports Java-style block comments; see http:// 
www.jessrules.com/docs/70/basics.html#comments .


In the IDE, there are commands to comment and uncomment a whole block  
of statements using ; .



-
Ernest Friedman-Hill
Advanced Software Research  Phone: (925) 294-2154
Sandia National LabsFAX:   (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://www.jessrules.com


To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]




JESS: removing modules

2007-03-02 Thread Krasnigor, Scott L (N-AST)
In our application, we are dynamically creating and removing rules from
the engine. We are sent a set of rules that are associated with a
certain module based on parameters passed to us along with the rules. We
are notified when a rule is no longer needed and we remove the rule (or
rules) from the engine. What we would like to do is when a module no
longer contains rules; we want to remove that module from the engine.
I've searched through the documentation/book/api but did not see a way
to remove a module from the engine. I noticed in the mailing list that
someone retrieved an iterator of modules and removed a particular one
from the iterator using iterator.remove(). Is this the best way of
removing modules or is there a more efficient way to accomplish this?
Also, is there a simple way to determine if a module contains any rules?
Thanks for any assistance.

 

Scott

 



Re: JESS: Commenting JESS files

2007-03-02 Thread rand
Good news! Thanks. I just looked in the JESS in Action book and its not
there.  I didn't think to try the online version.  But I will double check
things next time.  I tend to be a little lazy with online version since
there is no index as there is with the book.  Guess I am a little old
fashioned that way.

Rand

 On Mar 2, 2007, at 3:31 PM, [EMAIL PROTECTED] wrote:


 Is there any way to do Java style commenting in JESS files?  Like
 anything
 after /* and before */ is ignored by the loader?  It would sure
 make
 coding a lot easier than having to put a ; at the beginning of every
 line.


 Jess 7 supports Java-style block comments; see http://
 www.jessrules.com/docs/70/basics.html#comments .

 In the IDE, there are commands to comment and uncomment a whole block
 of statements using ; .


 -
 Ernest Friedman-Hill
 Advanced Software Research  Phone: (925) 294-2154
 Sandia National LabsFAX:   (925) 294-2234
 PO Box 969, MS 9012 [EMAIL PROTECTED]
 Livermore, CA 94550 http://www.jessrules.com

 
 To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
 in the BODY of a message to [EMAIL PROTECTED], NOT to the list
 (use your own address!) List problems? Notify [EMAIL PROTECTED]
 







To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]