Thanks Mike. Will give it a try

 

 

 

Regards,

Shobha M

 

From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Michael Anstis
Sent: 10 August 2012 PM 02:16
To: Rules Users List
Subject: Re: [rules-users] Decision table help

 

In DRL terms this is quite simple:-

when
   $instance1 : ObjA( $mailID : mailId )
   ObjA( this != $instance1, mailId != $mailId )
then
   ...


This translates to a XLS decision table like this:-

| CONDITION     | CONDITION       | CONDITION        |
+---------------+-----------------+------------------+
| $i : ObjA     | ObjA                               |
+---------------+-----------------+------------------+
| $mid : mailId | this != $param  | mailId != $param |
+---------------+-----------------+------------------+
| 12345         | $i              | $mid             |

There are no doubt other approaches.

With kind regards,

Mike

On 9 August 2012 11:07, Mahadevappa, Shobha <Shobha.Mahadevappa@nttdata.com> wrote:

Hi,

I have scenario where I need to compare attributes of two different instances of an object in the decision table.

 

The scenario is - say I have 5 instances of an object ObjA.

ObjA has an attribute mail_id.

I need to compare the maild_id attributes of the ObjA instances to figure out if they do not match (Ex: instance1.maild1 <> instance2 maild)

Can you please let me know how this can be achieved using the decision table.

 

 

Regards,

Shobha M | Senior Program Manager, A&AD | NTT DATA Global Delivery Services Limited| w. +91-80-26659482 (Ext 3679) | v. 8814.3679 | m. +91.9972522743 | shobha.mahadevappa@nttdata.com

 


______________________________________________________________________
Disclaimer:This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data. If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

 


______________________________________________________________________
Disclaimer:This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data. If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding