[rules-users] Comparing names
Ian Spence
ianspence at gmail.com
Thu May 14 02:33:17 EDT 2009
Hello all,
I am new to Drools…
I have a scenario
Each fact object will have the structure:
Title
Proprietor Group
Proprietor Name
E.g.
2100-100
J2 ½ share
SMITH, JOHN
JONES, FRED
T ½ share
BROWN, CHARLIE
2100-101
J2 ½ share
BROWN, CHARLIE
JONES, FRED
T ½ share
SMITH, JOHN
2100-102
T ½ share
BROWN, CHARLIE
J2 ½ share
JONES, FRED
SMITH, JOHN
The group names and the proprietor names must be the same across each
Title. The scenario above is a valid case. A failed case would result for
Title 2100-100 if we add an extra Proprietor name e.g. WHITE, MARY.
I anticipate having one rule to cater for this. I am hedging towards the
‘collect’ operator but cannot get a clear picture on how to implement it.
--
Regards,
Ian Spence
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090514/3a8dfb8a/attachment.html
More information about the rules-users
mailing list