I think =?iso-8859-1?Q?Diego_Alonso_Gonz=E1lez?= wrote: > I don't know how to be sure if I succeed on that; so I create > a query of one answer and ask RETE about the fact I introduced earlier.
If assert doesn't throw an exception, it succeeded. > > If I debug this piece of code it works fine, but it doesn't when doing a > normal execution... > It seems the jess RETE takes a bit to be ready for the query.. and it > returns nothing ?! > How can I made jess faster, or mi code to wait for jess answering a > confirmation? Jess doesn't create any threads. Everything happens synchronously. Therefore no "waiting" is necessary. Perhaps your real program uses multiple threads, and you need to coordinate their actions somehow, or perhaps the problem lies elsewhere (for example, perhaps the code you showed is never actually executed.) --------------------------------------------------------- Ernest Friedman-Hill Science and Engineering PSEs 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] --------------------------------------------------------------------