Does your Destination class have a field "FieldMember"?
-W
Hi,
I am setting an ArrayList as a Global on my drools session by saying ...
StatefulSession drlSession = getRuleManager().getSession();
drlSession.setGlobal("myMailingList", myMailingList);
then in my Drl file, I send the same arrayList as a parameter to the setter of another object by saying...
package com.test.rules;
import java.util.ArrayList;
global java.util.ArrayList myMailingList;
rule "Test"
salience 100
no-loop true
when
$o:MyObject(some condition)
$d:Destination()
then
$d.setFieldMember(myMailingList)
end
So, based on some condition/field value in MyObject I want to set the Destination with the arraylist - myMailingList.
Is the way I specify/refer the ArrayList in the then part fine. Because I am always getting "unable to compile test.drl file - runtime exception".
Could some one please help me with this.
-thnx
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users