Hi, I'm new. I've looked over the documentation and some of the mailing list archive, and I can't figure out how to do something:

I want to define rules and queries as Java objects using the Jess API,
then add them to the Rete instance. I see in the API that there are
classes to represent rules and queries, but they have no constructors.

I can already do this for facts (add Values to a ValueVector, then
set that info into a Fact object). However, I just can't figure
out how to build rules and queries this way.

I can use "executeCommand" with text of the rule or query, but I would
like to add non-string information to the LHS patterns--so that
is why I think I need to build them using the API instead.

I understand that I can define a rule with "executeCommand" then
retrieve it from the Rete using "findDefrule," but then can I modify it
using the Jess API?

If you have the intuition that I'm approaching this problem incorrectly,
let me know what is a good alternative. Like I said, I'm new to Jess!

--
Dennis Brown @ Naval Research Lab

Postal: Code 5581
        4555 Overlook Ave SW
        Washington, DC  20375
E-Mail: [EMAIL PROTECTED]
 Phone: 202-404-7334
   Fax: 202-767-1122
--

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