Thanks Wolfgang. This really clarifies my doubt -Bala
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Wolfgang Laun Sent: Tuesday, February 18, 2014 5:13 PM To: Rules Users List Subject: Re: [rules-users] Attribute comparison thru decision table If you look at the decision table examples in the Drools documentation you'll see that decision tables don't fit the pattern you have posted. But you can rules to do what you want, and you'll need one rule for each comparison if a distinct action is to be performed for each inequality. -W On 18/02/2014, [email protected] <[email protected]> wrote: > Hi, > > I have a requirement to compare attributes in two objects(Object1 Vs. > Object2) and store the values based on business rule in object 3. > Example rules: > > If (Obj1.atrr1 != Obj2.atrr1) > Then Obj3.attr1 = Obj2.atrr1 > > If (Obj1.atrr2 != Obj2.atrr2) > Then Obj3.attr2 = Obj1.atrr2 > > If (Obj1.atrr3 - Obj2.atrr3 > 10) > Then Obj3.attr3 = Obj1.atrr3 > > We are planning to use decision table for this to avoid a separate GUI > development. > Would like to know whether writing rule for each attribute is the only > solution or is there any simpler approach? > > > Thanks in advance, > -Bala > > ________________________________ > > This message is for the designated recipient only and may contain > privileged, proprietary, or otherwise confidential information. If you > have received it in error, please notify the sender immediately and > delete the original. Any other use of the e-mail by you is prohibited. > Where allowed by local law, electronic communications with Accenture > and its affiliates, including e-mail and instant messaging (including > content), may be scanned by our systems for the purposes of > information security and assessment of internal compliance with Accenture > policy. . > ______________________________________________________________________ > ________________ > > www.accenture.com > _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users ________________________________ This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy. . ______________________________________________________________________________________ www.accenture.com _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
