I think Steve Solomon wrote: > > for a list of type String. What if the multislot in Jess is of mixed > type (strings, symbols, numbers, and object references)? What is the > appropriate type of array to use? Object[] seems to work the best but > the property setter converts the symbols to strings.
Generally, a Java String object is always going to be a Jess RU.STRING. > Related question: The function definstance imports Java bean instances > into Jess. Is there a way (a function, perhaps) to export a fact (fact > id) to Java? If you've got the id number in Java, you can use the Rete.findFactById() function to get the jess.Fact object. If you'd got a Fact bound to a variable in Jess, then you can pass it to a Java function or store it using (store) and Java code can get it from there. There are plenty of ways for Java code to get ahold of a Fact -- if you have a particular scenario in mind that you can't see how to handle, just describe it. --------------------------------------------------------- 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] --------------------------------------------------------------------
