Can some one please help....<br><br>Thanks,<br>Ashish<br><br><div class="gmail_quote">On Mon, Mar 30, 2009 at 10:37 PM, Ashish Soni <span dir="ltr">&lt;<a href="mailto:learnspring@gmail.com">learnspring@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi All , <br><br>I am trying to write below rule in Guvnor Guided Editor but not able to do so , Any help or suggestion will be appreciated  -<br>
<br>Let say i have a Invoice Object which contains collection of Line Items <br>
<br>Class Invoice<br>{<br>   private Collection&lt;LineItem&gt; lineItems;<br>}<br><br>Class LineItem<br>{<br>   private double grossAmount;<br>}<br><br>Now i want to write a rule on Invoice object so that when ever there is only one LineItem in the collection and the gross amount is greater then $100 then split the lineitem in two with setting equal gross amount in each Line Item i.e after the rule execution the Collection of the LineItem should contain two line item object with equal gross amount .<br>

<br>Please let me know how can i create this rule using Guvnor guided editor.<br><br><br>Regards,<br><font color="#888888">Ashish<br><br><br>
</font></blockquote></div><br>