I think Venkat wrote:
> 
> Hi,
> 
> In the process of integrating SQL outputs to JESS, I am now 
> asserting a fact in JESS for every tuple returned from a query. 
> 
> Two of the fields (defined as varchar) in the tuples are to be 
> fed to multislot fact - i need to strip the single string to mulislot
> fields - job of "Create$" ?? Should I handle this from the Java side
> or Clips side ?? And when using defclass how is a multislot field
> defined in the Bean using get and set methods? Getting lost here !!

Well, there are a number of questions here: 
1) "explode$" turns a string into a multifield. It does it using Jess'
concept of a token, though,  so it might not do what you want. For
example, 'this&that' is three tokens - you might want it to be one. If
you have this kind of problem, then you'd best do it yourself in Java.

2) Properties whose actual values are arrays - i.e.,
        String[] getInfo() { ... }
        void setInfo(String[] s) { ... }

are translated by defclass into multislots. You have to match, set,
and get  the whole array at once. So called "indexed" properties, like

        String getInfo(int i) { }
        void setInfo(String s, int i) { }

are NOT recognized as properties, so you can't match on them.


> 
> I have the sequence working for single slots. Any suggestions
> on multislots will be helpful.
> 
> I have tried to make this mail as short as possible - if I need to
> expand on anything please let me know.
> 
> Thanks,
> Venkat
> ---------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the
> list. List problems? Notify [EMAIL PROTECTED]
> ---------------------------------------------------------------------



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9214                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to