I think m u wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> I have problem in using one file for all the rules and to have the user to
> be able to write a new rule. I'll try to check the manual again. maybe i
> missed that part.

When you read in a file of Jess code, later changes to that file don't
automatically change anything in the rule engine; you'd have to read
the file in again. So basically this is just an ordinary text file
containing Jess code, and you can simply let the user edit it, or you
can append to it or make any other changes, and then read it back into
Jess. My point is that this part of the problem isn't Jess-specific at
all -- it's just managing an editable text file.


> 
> thanks
> 
> 
> On 5/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > What part of this do you need help with? Everything necessary is
> > documented in the manual.
> >
> > I think m u wrote:
> > [Charset iso-8859-1 unsupported, filtering to ASCII...]
> > > Hi..
> > >
> > > I would like to embed JESS in my java program (i mean not to program in
> > .clp
> > > script file). But i would like to store all the rules in one text file.
> > The
> > > flow of the program is as below:
> > >
> > > 1. get user name, address, phone no. by using JTextField in my java
> > program
> > > 2. JESS or my java program will open the rule text file.
> > >
> > >
> > > one example of the rules would be like this:
> > >
> > > (defrule John-data
> > > (name John)
> > > (address john'sAddress)
> > > (phone john'sPhone)
> > > ->
> > > (assert (user John)))
> > >
> > >
> > > 3. JESS will use the input data and do the matching with the rules to
> > get
> > > the user's total payment.
> > >
> > > 4. My java program will use the "user" variable asserted by JESS and
> > produce
> > > the result in GUI to the user.
> > >
> > > 5. And possibly user could add a new rule (for a new user) into the rule
> > > text file.
> > >
> > > Is this possible to do? It is highy appreciated if somebody could give a
> > > guide for my idea or any better suggestions.
> > >
> > > regards,
> > >
> > > irejai
> >
> >
> >
> > ---------------------------------------------------------
> > Ernest Friedman-Hill
> > Advanced Software Research          Phone: (925) 294-2154
> > Sandia National Labs                FAX:   (925) 294-2234
> > PO Box 969, MS 9012                 [EMAIL PROTECTED]
> > Livermore, CA 94550         http://herzberg.ca.sandia.gov
> >
> > --------------------------------------------------------------------
> > 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]



---------------------------------------------------------
Ernest Friedman-Hill  
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to