[rules-users] How to create nested rules in Drool Guvnor (Pradeep Ruhil)

Pardeep.Ruhil at lntinfotech.com Pardeep.Ruhil at lntinfotech.com
Tue Aug 11 23:55:18 EDT 2009


Hi,
Thanks for replying.

I have a scenario like
Rule "shopping cart total exceeds 4000, give 50% discount"
        when
          <condition>
        then
          <action>
          call Rule"if order is  between 6 to 9 pm, give additional 
discount of 20 %"
end
Rule "if order between 6 to 9 pm give additional discount of 20 %"
        when
                <condition>
        then
                <action>
end

..............
Also i have a  query like, Can we make rule like this

Rule "shopping cart total exceeds 4000 give 50% discount"
        when
                <condition>
        then
                <action>
 
                Rule "if order between 6 to 9 pm give additional discount 
of 20 %"
                        when 
                                <condition>
                        then
                                <action>
                end
end

Can we make rules like above?




Subject: Re: [rules-users] How to create nested rules in Drool Guvnor
To: Rules Users List <rules-users at lists.jboss.org>
Message-ID:
 <efac615a0908110416s2560347fr5d4b0431bb727e9a at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

give us one example about your nested rules ..


2009/8/11 <Pardeep.Ruhil at lntinfotech.com>

>
> Hi Users,
> I have a scenario in which I have to make nested rules.
> But I don't know how it is to be done in Drools Guvnor. I had created 
them
> in Drool Rule Engine, but have no clue
> of the same in Drool Guvnor.
> Can you please tell me how to achieve this in Drool Guvnor , as it is 
very
> urgent.
> Please tell.
>
> Thanks & Regards
>
> Pardeep Ruhil


______________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090812/5dd6ac78/attachment.html 


More information about the rules-users mailing list