Hi!

>Is there a way
>for me to in a jess function(deffunction) pass
>something back into my calling java program? Once
>I get a rule to fire, I need to be able to get the
>information to change the XML back to my java code.
>Or somehow be able to change the XML. I am
>open to any ideas.

An XML document is a collection/hierarchy of objects (nodes) that are
usually accessible through the standardized DOM (Document Object Model)
API. You can pass object references to Jess (see documentation).

Your options then range from pure Jess script to (almost) pure Java:

1) Within your Jess script you can call a Java object's methods. Thus, you
can also modify your XML document from within a deffunction or directly on
the RHS.
2) You can write Jess Userfunctions (in Java) that perform the necessary
modifications. You'd use these Userfunctions in your script.
3) You can write a normal Java class that performs the modifications. You'd
call its method(s) the usual way.

Greetings, Thomas

+-------------------------------------------------------------+
| This message may contain confidential and/or privileged     |
| information.  If you are not the addressee or authorized to |
| receive this for the addressee, you must not use, copy,     |
| disclose or take any action based on this message or any    |
| information herein.  If you have received this message in   |
| error, please advise the sender immediately by reply e-mail |
| and delete this message.  Thank you for your cooperation.   |
+-------------------------------------------------------------+


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