Hi,
I've been digging around validation for a little while and need to be told where to look. I've been looking at the animal quiz example.
As I understand it, the bpm4struts cartridge generates the validations.xml by navigating down from the ApplicationUseCase to actions which have validationRequired = true
Am I right in thinking that a model transition relates to a struts action? As far as I can tell, if a transition has a signal trigger, which has parameters, then the validation.xml is generated for that form. Is this how it works?
a struts action makes up the complete transition path between two <<FrontEndView>> action states (or until a final state)
every regular action state in between will be a private method in the Struts action (possibly deferring to the controller callback)
Also.... I don't really understand what part the validation translation library plays in all this. Or is the translation library not really doing much in this example because very little has been defined in the way of constraints?
like Chad said, the validation is done entirely inside the bpm4struts cartridge
the validation.xml file is mostly generated by code in StrutsParameterLogicImpl.java
I'm aiming to define constraints on entity attributes in my object model and then derive form validation from these constraints. Think I need to understand a bit more about OCL and the translation library before I attempt this :)
naah, for bpm4struts you model validation rules using tagged values instead, although there are some default validation routines setup, for example: when the parameter is an integer type the validation will depend on that to make sure an integer *will* be passed down to the backend ..etc..
-- Wouter
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user
