Can i retract the objects from accumulate function<br>rule "Brand base free Item "<br>salience 10<br>when<br> brand_total:Number(doubleValue >=1500)<br> from accumulate ( sa:SLS_SALES_DTLS( <br> PK!=null,<br>
PK.ITEM_ID.BRAND_CD.BRAND_CD=="N00"<br> ) , init ( double single_total=0; ),<br> action (single_total=single_total+(sa.getTRN_QTY()*<br> sa.getPK().getITEM_ID().getSALES_TO_BASE_CONV()<br>// I want to retract the sa over here<br>
<br>);<br> ),<br> result (single_total ) );<br>then<br>double item_discounted=brand_total.doubleValue()/ 1500;<br>System.out.println("The discount given qty "+item_discounted+" multiplied slot 10");<br>
double item_left=brand_total.doubleValue()%1500;<br>if(item_left>=1)<br>{<br>doit(item_left,"N00");<br>}<br>end<br>