This is almost as you'd do it Java, with $controlExamList
being bound to a Control_Exam_List
object; although, in Drools, you may have to cast:
then
for( Object obj: $controlExamList.getCode() ){
System.out.println( (String)obj );
}
end
But you can also try:
then
for( String str: $controlExamList.getCode() ){
System.out.println( str );
}
end