Is your data coming from XML? If so, have you got an XML schema you can share?
-W
On 05/09/2012, Suvek <suvek.shah(a)gmail.com> wrote:
Thanks Manstis and laune!!
Manstis your assumptions are right, I have various places from where the
address will be validated.
Moreover this pattern is going to repeat on various levels. So to explain
when the tax return is filed, TaxReturn needs validating, also the
TaxReturn
will have 1..* TaxPayer so the tax payers would be validated using Taxpayer
rules and Addresses associated with the TaxPayer also get validated. In
some
of the cases there could be 5 levels.
Depending on where the rules are being called from all the rules must be
validated for the passed in object + all the associated child objects.
Hope my approach is correct to have separate rules for each level and reuse
the child validation if available.
I will try out the suggested solution and get back with the results.
thanks again
S.
--
View this message in context:
http://drools.46999.n3.nabble.com/Re-usability-of-rules-tp4019580p4019588...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users