How To Avoid Conflict Among ModelValidator?

What Trunk or Branches to use and mix? Which is the Official version? How to survive growth?
Forum rules
This forum is personally pruned to avoid redundant posts. Related topics are moved to the same sub-forum. Language will be corrected for readability.

How To Avoid Conflict Among ModelValidator?

Postby edwinang » Wed Oct 05, 2011 3:34 pm

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
edwinang
 
Posts: 35
Joined: Tue Jul 05, 2011 11:00 pm

Re: How To Avoid Conflict Among ModelValidator?

Postby red1 » Wed Oct 05, 2011 6:16 pm

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.
red1
Site Admin
 
Posts: 2762
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia

Re: How To Avoid Conflict Among ModelValidator?

Postby globalqss » Mon Oct 10, 2011 10:36 pm

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
globalqss
Senior
 
Posts: 599
Joined: Thu Dec 29, 2005 4:15 am
Location: Bogotá, Colombia

Re: How To Avoid Conflict Among ModelValidator?

Postby edwinang » Mon Oct 17, 2011 10:05 am

Carlos,

Thanks for the reply :)

Regards,
Edwin
edwinang
 
Posts: 35
Joined: Tue Jul 05, 2011 11:00 pm


Return to Building ADempiere

Who is online

Users browsing this forum: No registered users and 1 guest

cron