[rules-users] Re-usability of rules

Wolfgang Laun wolfgang.laun at gmail.com
Wed Sep 5 05:57:45 EDT 2012


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 at 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.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list