Hi everyone,
I have this scenario:
I have assserted a few elements of the type "SegmentGroup8" into the working
memory, this SegmentGroup8 class have inside a list called private
List<ControlTotal> cnt;
What I need to achieve is to perform a "sum" of one of the fields called
c6066 inside the ControlTotal for all the SegmentGroup8 asserted into the
WM...
I would like to use the accumulate functions but I really dont know how, any
help would be appreciated, thanks in advance...
the classes code is the following...
public class SegmentGroup8
implements Serializable
{
private List<ControlTotal> cnt;
private List<MonetaryAmount> moa;
public List<ControlTotal> getCnt() {
return cnt;
}
public void setCnt(List<ControlTotal> cnt) {
this.cnt = cnt;
}
......
}
public class ControlTotal extends Segment
implements Serializable
{
private String c6069;
private String c6066;
........
public String getC6069() {
return c6069;
}
public void setC6069(String c6069) {
this.c6069 = c6069;
}
public String getC6066() {
return c6066;
}
public void setC6066(String c6066) {
this.c6066 = c6066;
}
.........
}
--
View this message in context:
http://drools.46999.n3.nabble.com/accumulate-function-tp3353507p3353507.html
Sent from the Drools: User forum mailing list archive at
Nabble.com.