<br><tt><font size=2>Hi,</font></tt>
<br><tt><font size=2>Thanks for replying.</font></tt>
<br>
<br><tt><font size=2>I have a scenario like</font></tt>
<br><tt><font size=2>Rule &quot;shopping cart total exceeds 4000, give
50% discount&quot;</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; when</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;condition&gt;</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; then</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action&gt;</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; call Rule&quot;if
order is &nbsp;between 6 to 9 pm, give additional discount of 20 %&quot;</font></tt>
<br><tt><font size=2>end</font></tt>
<br><tt><font size=2>Rule &quot;if order between 6 to 9 pm give additional
discount of 20 %&quot;</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; when</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &lt;condition&gt;</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; then</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &lt;action&gt;</font></tt>
<br><tt><font size=2>end</font></tt>
<br>
<br><tt><font size=2>..............</font></tt>
<br><tt><font size=2>Also i have a &nbsp;query like, Can we make rule like
this</font></tt>
<br>
<br><tt><font size=2>Rule &quot;shopping cart total exceeds 4000 give 50%
discount&quot;</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; when</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &lt;condition&gt;</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; then</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &lt;action&gt;</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; Rule &quot;if order between 6 to 9 pm give additional
discount of 20 %&quot;</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; when </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &lt;condition&gt;</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; then</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &lt;action&gt;</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; end</font></tt>
<br><tt><font size=2>end</font></tt>
<br>
<br><tt><font size=2>Can we make rules like above?</font></tt>
<br>
<br>
<br>
<br><tt><font size=2><br>
Subject: Re: [rules-users] How to create nested rules in Drool Guvnor<br>
To: Rules Users List &lt;rules-users@lists.jboss.org&gt;<br>
Message-ID:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&lt;efac615a0908110416s2560347fr5d4b0431bb727e9a@mail.gmail.com&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
give us one example about your nested rules ..<br>
<br>
<br>
2009/8/11 &lt;Pardeep.Ruhil@lntinfotech.com&gt;<br>
<br>
&gt;<br>
&gt; Hi Users,<br>
&gt; I have a scenario in which I have to make nested rules.<br>
&gt; But I don't know how it is to be done in Drools Guvnor. I had created
them<br>
&gt; in Drool Rule Engine, but have no clue<br>
&gt; of the same in Drool Guvnor.<br>
&gt; Can you please tell me how to achieve this in Drool Guvnor , as it
is very<br>
&gt; urgent.<br>
&gt; Please tell.<br>
&gt;<br>
&gt; Thanks &amp; Regards<br>
&gt;<br>
&gt; Pardeep Ruhil<br>
</font></tt>

<BR>
______________________________________________________________________<BR>