Home » Java » java – Drools Nested Accumulate (more than 3 classes )-Exceptionshub

java – Drools Nested Accumulate (more than 3 classes )-Exceptionshub

Posted by: admin February 25, 2020 Leave a comment

Questions:

I have the following Classes :

class Level1{

List<Level2> l2list;

}

class Level2 {

List<Level3> l3list;

}


class Level3 {

List<Level4> l4list;

}

class Level4 {
......

}

I need to get l4list from DRL rule in when part.
In KieSession, I’m inserting object of Level1 type (Not the others – because,the original code has more than 100 classes within Level1).

How to&Answers: