According to the tables in section 2.6 of the manual, Java arrays are
converted to multifields, and multifields to arrays. This holds true
for JavaBean properties as well: a property
void setFoo(String[] argv);
String[] getFoo();
becomes a multislot in the corresponding deftemplate.
I think wqyivy wrote:
> hi
> I just want to know how I can specify a property in a java bean as a multislot so
>that I can execute some kind of rules. For example, there is a fact and a rule in a
>fact base,
>
> f-0 (ma (class <External-Address:java.lang.Class>) (content aa tt bb) (OBJECT <Ex
> ternal-Address:mulAtom>))
>
> (defrule r1
> (ma (content $? aa $?))
> =>
> (printout t "ok"))
>
> I tried different ways without solving it. Is it possible to do such a thing? It
>seems that all the slot in a java bean is supposed to be slot, not multislot.
> Thanks for your help.
> Ivy
>
>
>
>
>
>
> -----------------------------------------
> �ҵ��������ҵ�����
> http://name.etang.com/
> ���ƶ��ţ���������ʱ�й���
> http://sms.etang.com
> ��200Ԫ�����ѵľ���
> http://ecard.etang.com/progt/index.asp?s1=1&s2=1
> ְҵ��˼¼
> http://topic.etang.com/job/index.htm
>
> ---------------------------------------------------------------------
> 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]
> ---------------------------------------------------------------------
>
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9012 [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 (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------