----- Original Message ----- From: "Wouter Zoons" <[EMAIL PROTECTED]> To: "'Users AndroMDA'" <[EMAIL PROTECTED]> Sent: Sunday, June 13, 2004 2:53 PM Subject: [Andromda-user] model constraint validation using OCL
> hi people, > > today I finished a first implementation of the validation framework used in AndroMDA, Awesome Wouter...good job! in fact the framework has been put in place by Chad some > time ago but the OCL constraints weren't translated yet into compilable > Java code because the translation still needed to be written (only EJBQL > and HypersonicQL were supported). Well not HypersonicQL ...HibernateQL...not sure what HypersonicQL is? :) > > so a first rough version of this OCL-to-Java translator has been put in > CVS now, it seems to work for the most common constraints > > what does this concretely mean ? well, each andromda cartridge will now > be able to check and validate model constraints, for example in > bpm4struts the cartridge will now complain if it detects two use-cases > with the same name, or when an activity graph has no controller > context,... stuff like that > > therefore the cartridge will warn you with a message indicating what is > wrong, this is much better than an exception behind which the error > hidden in deep > > the only things to do now are to implement some more OCL advanced > features, but we'll do that when we need them (lazily), more important > (at least IMO) is how the error messages will be displayed, currently > they are shown as a stack trace which might be a little too much, so > we'll need to filter out the model validation exceptions and only print > the message, should be straightforward enough. Yeah, we should collect them at print them out at the end of the generation, like we all talked about a while back. Shouldn't be too hard to add. > > I know a lot of people were asking for this, and now it is there; I can > tell you with more confidence that the next milestone (3.0M2) will > feature this improvement and it is very likely we'll release it soon, -- Yeah I think we should release soon also, we'll have to talk to Matthias when gets back. > but that's not up to me alone to decide. > > for the eager beavers: sync with CVS (at least 8 hours from now) to get > the latest sources, I'm not sure what will happen with the bootstrap > dependencies since the teamserver is down and we cannot boot it (only > Matthias can do that, and he's abroad), if enough people are interested > I will post the bootstrap dependencies elsewhere so we all can build > with online support > > cheers, and good luck > > -- Wouter > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the new InstallShield X. > From Windows to Linux, servers to mobile, InstallShield X is the > one installation-authoring solution that does it all. Learn more and > evaluate today! http://www.installshield.com/Dev2Dev/0504 > _______________________________________________ > Andromda-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/andromda-user ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user
