Hi to everyone,
I have a problem using Jess in a Java Application.
I define a Rete object in a Java Application, add a User Function and start 
the Jess Engine using the method "runUntilHalt()" as shown in the following 
code:

Rete myrete=new Rete();
myrete.addUserFunction(new Question("parameters"));
/*******
   OTHER INIZIALIZATIONS
*******/
myrete.runUntilHalt();

Now in the Rules file I call the User Function "Question". This User 
Function asks to the user to input a value and then made a lot of calculus. 
Unfortunately I can't include this calculus into the User Function so was 
my intention to halt the Engine (using (halt) ) immediatly after the return 
of the User Function. At this point Java makes the calculus and write the 
result in the Standard Input and "restarting" the engine read it from the 
standard input.
Unfortunately Jess immidiatly after the (halt) command read from the 
stanadrd input (that is empty). The calculus are made only when the engine 
halts because has no active rules.
Thank to everyone,
Paolo Mereghetti.

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