I did a little investigation and it should be possible to render a hierarchy of usecase as you explained
being in a usecase would open up (expand) the corresponding menu level the thing is that I need to take care of a special case where use-cases are modeled in a cyclic way, in that case I would need to resolve which use-case is supposed to be the start of the cycle :-) I could for example simply say 'the first one found' starts the cycle .. you would always be able to update the menu manually afterwards -- Wouter > Hi, > > Allthough I am very interested in a multi-level menu option, for the > short term I would like to remove the sub-items from the menu bpm4struts > generates. In combination I would like to be able to set the order in > which menu items are shown (I am not sure how this is done, but I guess > it is something like the order in which the use-case a defined in the > xml model?!). > > So my idea would be to add two additional tagged values for a use-case, > something like: > - @andromda.struts.usecase.menu.include > - boolean type > - default should be true, so if not defined it should include it in > the generated menu > - @andromda.struts.usecase.menu.order > - integer type > - items are shown in ascending order (in case of duplicate values, > pick any) > - if missing the current mechanism should be used > > Now my question is whether there is some documentation or previous post > in which it is described how to add custom tagged values (and use these > in the templates)? I am completely new to this type of customization so > any help is greatly appreciated! > > Would this also be of interest for the main distribution of bpm4struts? > > Regards, > Erwin Teseling > > Wouter Zoons wrote: > >>hi Erwin, >> >>this is indeed a very useful feature that would be appreciated by a lot >> of >>users, a related JIRA issue has already been opened for it some time ago: >>http://team.andromda.org:8080/jira/browse/BPM-27 >> >>feel free to add your comments to this issue, so they will be taken into >>account >> >>linking use-cases is a bit controversial because use-cases are supposed >> to >>be loosely coupled, so I'll have to look into that >> >>on the other hand, having only loosely coupled use-cases is pretty >> useless >>in reality, so I am sure to implement this feature sooner or later; the >>thing is that it is quite complex to do, and once I start I need to make >>very sure I am not introducing possible bugs ... it practically means >>going through all the modeling possiblities with this new feature >> >>it's likely I will branch from cvs HEAD and continue this work off-track >> >>so, please add your remarks to the JIRA issue ... they are very useful >> indeed >> >>greets >>-- Wouter >> >>ps: the implementation itself (having collapsable menus etc...) is not >>that difficult, it could be done either in Javascript, either in JSP; ... >>that need to be discussed too (or both could be supported) >> >> >> >>>Hi, >>> >>>In my application I implement a use-cases hierarchy, which means that >>>some use-cases are part of other use cases. Most of these sub use-cases >>>are depending on something being done in their upper-level use-case. A >>>simple example would be selecting a customer before you can edit/update >>>their address data. Currently with my model bpm4struts generates a flat >>>menu, including these sub use-cases. But is does not make sense to >>>select these from the menu directly because for instance no customer has >>>been selected yet. >>> >>>All the sub use-cases are accesible either through a form or a hyperlink >>>so these sub-item could be removed from the menu. Is there a way to >>>define that a use-case should not appear in the menu list? Probably a >>>tagged value on the use-case would be the way to implement this? >>> >>>Another even better solution could be a hierarchical (multi-level) menu >>>being generated in javascript (this could include (un)folding of menu >>>items and in my situation would be a better alternative to the >>>sequential breadcrums). Have there ever been plans to support something >>>like this? Or is this even possible today, just like my question >>>yesterday about using customized templates :-)? Otherwise there are >>>probably libraries that support this functionality and of which it could >>>be interesting to integrate these in bpm4struts? I think it would be >>>possible using the existing uml features of use-case diagrams >>>(include/extend/etc), what do you guys think? >>> >>>Regards, >>>Erwin Teseling >>> >>> >>> >>>------------------------------------------------------- >>>This SF.net email is sponsored by: IT Product Guide on ITManagersJournal >>>Use IT products in your business? Tell us what you think of them. Give >>> us >>>Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out >>>more >>>http://productguide.itmanagersjournal.com/guidepromo.tmpl >>>_______________________________________________ >>>Andromda-user mailing list >>>[EMAIL PROTECTED] >>>https://lists.sourceforge.net/lists/listinfo/andromda-user >>> >>> >>> >> >> >> >> > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out > more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Andromda-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/andromda-user > -- Wouter ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user