Re: [rules-users] How to Iterate list in drools

2010-07-30 Thread Esteban Aliverti
You might be looking for accumulate or collect patterns. You will find all the information you need in the manual. Best, El jul 30, 2010 11:22 a.m., "Dinesh kumar" escribió: Hi, I am facing problems in iterating a list in guvnor. I tried the following code and it worked. import java.util.Ar

[rules-users] How to Iterate list in drools

2010-07-30 Thread Dinesh kumar
Hi, I am facing problems in iterating a list in guvnor. I tried the following code and it worked. import java.util.ArrayList; rule createValidationReport dialect 'java' when ClaimRegistration($ailmentList : ailmentListFromScreen) then for(String ailment : (ArrayList) $ailmentList){ Syst