As a user of JESS in the corporate environment, I concur that using the native Java API is much better.
JSR-94 is great for Visio diagrams and "architecture documents", but is pretty irrelevant when it comes to meaningful portability. If you switch rule engines, the interface to your code will be the least of your concerns. Ben On Tue, 2004-09-14 at 10:56, [EMAIL PROTECTED] wrote: > I think [EMAIL PROTECTED] wrote: > > I have been experiencing difficulty using the JSR-94 API with Jess. > > I already answered this at the Manning web site, but since it's asked > here, too, I'll answer it again. > > > > Specifically, I do > > not see a fact of the form (java.lang.String "A string" nil), which the > > documentation on Jess's implementation of JSR-94 seems to imply will be > > added to the factbase. Such a fact does not appear to be visible when I > > execute the Jess function > > > > (facts) > > > That's because the "(facts)" call is executed when the rest of the > code is: when the RuleSession object is being created, before you've > called addObject(). > > > > > and rules that are dependent on the existence of this fact are not > > activated. > > I don't see any such rule here. > > > To see the object in working memory, use the session.getObjects() > call to get a List of all of them -- that's the way you do things in > JSR94. > > As is fairly well-known, I'm not a huge fan of the JSR94 API, and the > reference implementation isn't at all easy to use. The next major > release of Jess (first alpha is coming out this week) will include a > much-improved JSR94 implementation. > > In the meantime, I ask you to consider using Jess's Java API > directly. It's not only far easier to work with, but it gives you much > more direct access to the tools and information you need to understand > what's happening in your program. > > --------------------------------------------------------- > 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] > -------------------------------------------------------------------- -- Benjamin Tomasini NetEverything, Inc. 1-877-270-1391 -------------------------------------------------------------------- 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] --------------------------------------------------------------------
