Page 1 of 1

How To Avoid Conflict Among ModelValidator?

PostPosted: Wed Oct 05, 2011 3:34 pm
by edwinang
Hi All,

Currently my development environment consists of: Adempiere 360 + GlobalQSS 360 patch + LCO_360 + new Fixed Asset branch + our custom project.
With this project setup, i am having at least three ModelValidator classes:
1. LCO Validator
2. FA Validator
3. My custom Validator

I am a bit worried about messing up the validations. Example: If all three validators is validating C_Order with TIMING_AFTER_COMPLETE, the result of the first validation can be altered by later validation. Anyone have any idea what is the best approach to manage them?

Regards,

Edwin Ang

Re: How To Avoid Conflict Among ModelValidator?

PostPosted: Wed Oct 05, 2011 6:16 pm
by red1
Have u checked with the wiki page at adempiere.com on this? I think it is advised there on the hierarchy of validation. It ought not to be random but serial.
But if your custom validator overrides say FA, i think its best to incorporate FA into yours and just use yours.

Re: How To Avoid Conflict Among ModelValidator?

PostPosted: Mon Oct 10, 2011 10:36 pm
by globalqss
Hi Edwin, in model validator table there is a sequence - if you fill it then the validators must be applied in such order.

Regards,

Carlos Ruiz

Re: How To Avoid Conflict Among ModelValidator?

PostPosted: Mon Oct 17, 2011 10:05 am
by edwinang
Carlos,

Thanks for the reply :)

Regards,
Edwin