[rules-users] Re: How to write below rule using Guvnor ( Invoice and Line Item scenario )
Héron Nicolas
nheron at sopragroup.com
Tue Mar 31 11:51:03 EDT 2009
Hello
To help, can you give the rule in a technical way ?
If the problem is to call a method in the then, you have to wait on
trunk/drools5, it is under way
Regards
Nicolas Heron
Le mardi 31 mars 2009 à 10:53 -0400, Ashish Soni a écrit :
> Can some one please help....
>
> Thanks,
> Ashish
>
>
> On Mon, Mar 30, 2009 at 10:37 PM, Ashish Soni <learnspring at gmail.com>
> wrote:
>
> Hi All ,
>
> I am trying to write below rule in Guvnor Guided Editor but
> not able to do so , Any help or suggestion will be appreciated
> -
>
> Let say i have a Invoice Object which contains collection of
> Line Items
>
> Class Invoice
> {
> private Collection<LineItem> lineItems;
> }
>
> Class LineItem
> {
> private double grossAmount;
> }
>
> 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 .
>
> Please let me know how can i create this rule using Guvnor
> guided editor.
>
>
> Regards,
> Ashish
>
>
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090331/a5e4be60/attachment.html
More information about the rules-users
mailing list