Eunice,


Jess list corresponds to Java array, so your Java method should take an array as argument.

Dusan Sormaz

At 10:15 PM 4/5/2006, you wrote:

Hello,
     I have a problem with LIST using Java and Jess. In Java i have the method in the class 'Order' as follow:

public static List orderList(List list, String str) {
...
}

When i call 'orderList' in Java, i write:

 Object[] RClist = { new ResultClass("karine", 8, 7, 2, 1, 1),
            new ResultClass("Fabíola", 4, 1, 5, 1, 1)};
 List list = Arrays.asList(RClist);
 list = Order.orderList(list, "str1");

In Jess when i call 'orderList', i write:

(bind $?a (create$ (new Code.ResultClassArticle "karine" 8 7 2 1 1) (new Code.ResultClassArticle "Fabíola" 4 1 5 1 1)))
(call Code.Order orderList $?a "str1")

Then,

Jess reported an error in routine call
 while executing (call Code.Order orderList $?a "str1").
  Message: No overloading of method 'orderList' in class Code.Order I can call with these arguments: (call Code.Order orderList (<External-Address:Code.ResultClassArticle> <External-Address:Code.ResultClassArticle>) "str1").
  .....

My question is: How can i do to transfer list from Jess to Java?
   Thanks,
         Eunice Palmeira

*********************************************************************
* Dušan Šormaz, PhD, Associate Professor                     
* Ohio University
* Industrial and Manufacturing Systems Engineering Department
* 277 Stocker Center, Athens, OH 45701-2979
* phone: (740) 593-1545
* fax:   (740) 593-0778 
* e-mail: [EMAIL PROTECTED]
* url: http://www.ent.ohiou.edu/~sormaz
*********************************************************************

Reply via email to