hi Stefan, that's strange, so I assume you have a tagged value on the controller pointing to the use-case ?
@andromda.struts.controller.usecase=My UseCase there is a test for that tagged value in the bpm4struts test model, so you can see it in action, just go to this package in the model: org.andromda.cartridges.bpm4struts.tests.controllertv -- Wouter ps: no need to use <<FrontEndController>> anymore ps2: no need to use <<FrontEndEvent>> anymore ps3: you can send me your model.. perhaps it's better I directly play with it, I can probably take a look at it now and fix it this evening (if I'm not playing pool) > > > Hello Wouter, > > thanks for your very quick reply. > > I modified the tagged value to the name of the activity graph, and now I > don't get the validation error "Each use-case needs one and only one > activity graph." any more. > But these three validation errors are still remaining: > > [andromda] ERROR [AndroMDA:VALIDATION:ERROR] 1) > [Bpm4Struts::andropalace::presentation::tickets::TicketreservationGraph]:An > activity graph must have a controller class context to which (optionally) > operations can be deferred. Make sure this graph's use-case has the > <<FrontEndUseCase>> stereotype. > [andromda] ERROR [AndroMDA:VALIDATION:ERROR] 2) > [Bpm4Struts::andropalace::presentation::tickets::TicketreservationGraph::enter > > criteria]:Each name of a JSP action state must be unique in the namespace > of a use-case. > [andromda] ERROR [AndroMDA:VALIDATION:ERROR] 3) > [Bpm4Struts::andropalace::presentation::tickets::TicketreservationGraph::select > > show]:Each name of a JSP action state must be unique in the namespace of a > use-case. > [andromda] INFO [AndroMDA] completed model processing --> TIME: > 29.122[s], RESOURCES WRITTEN: 55 - 3 VALIDATION ERROR(S) > > I thought these are consecutive errors, because they disappear as soon as > I > move the activity graph in the namespace of the usecase, but obviously > they > are not... > The context of the activity graph is set to a class with stereotype > FrontEndController, and the names of the action states are "enter > criteria" > and "select show", so they are unique (but of cource not in the namespace > *of a use-case*, but in the namespace of a package.) > > Regards > Stefan > > > > -- ------------------------------------------------------- This SF.net email is sponsored by: 2005 Windows Mobile Application Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones for the chance to win $25,000 and application distribution. Enter today at http://ads.osdn.com/?ad_idh82&alloc_id148&op=click _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user
