Book a Demo

Author Topic: Automation Interface: Model Validation  (Read 4377 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Automation Interface: Model Validation
« on: May 15, 2009, 11:08:28 pm »
Hi!


I'm interested in coding up some model validation rules.

Has anyone got some sort of higher-level rule definition / model validation execution thingy which I could use to define a set of rules in XML or similar rather than hard-coding them in Java?

Cheers,


/Uffe
My theories are always correct, just apply them to the right reality.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Automation Interface: Model Validation
« Reply #1 on: May 16, 2009, 03:42:52 am »
Uffe,

I have some experience writing model validation tools, and I doubt this approach will bring you much benefit.
Usually modelling rules are rather complicated, and best expressed in a programming language.
Trying to express those in something like xml will probably give you more headaches then benefit.
Of course you have to make sure that the rule definitions are nicely separated from your visiting code so that you can easily add/change/remove rules without impacting the rest of the application.
(think visitor, strategy)

Geert