[rules-users] How handle exception thrown while looping in DRL file

Wolfgang Laun wolfgang.laun at gmail.com
Tue Jul 17 08:44:59 EDT 2012


On 17/07/2012, ashwindrool <ashwin.khandelwal86 at gmail.com> wrote:
> Hi Laune,
>
>
> I do wht u asked me, I added print statement before and after for loop
>
>
>
>    "Before" is getting printed twice and "After" only once.

Like this????
Before
Before
After
---Error message---

Please be more specific.

Add another if statement before the for statement testing whether
 if(  $a.getAgentList() == null ){
     System.out.println( "List is null" );
}


Then it prints
> Error message which i mentioned in catch block from where i called rule in
> java.
>
>    in following order message getting printed
>    * before
>    list of data
>    after
>    before
>    error*
>
> /im printing 128thousand records/
> *
> No their is no null field in given records...................
> *
> 		
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/How-handle-exception-thrown-while-looping-in-DRL-file-tp4018727p4018738.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list