Wouter,

Have a look at:
http://www.gentleware.com/support/developer/jmi-uml1.4/

What you will want to do is design and write your own ScriptHelper that
provides you with access to the ActivityDiagram portion of the UML.

The ScriptHelper used right now by AndroMDA uses only the 'core' part of the
UML.  In your case you might be interested in the 'activitygraphs'.

For the javadoc API see:
http://www.gentleware.com/support/developer/jmi-uml1.4/org/omg/uml/behaviora
lelements/activitygraphs/package-summary.html


A little bit of code like the following in your ScriptHelper  might get you
start:

  UmlPackage umlPackage = (UmlPackage)getModel();
  ActivityGraphPackage activityGraphPackage  =
umlPackage.getActivityGraphs();

  Collection allActivityGraphs =
  activityGraphPackage.getActivityGraph.refAllOfType();

Let me know how you get along.  I've been wanting to do a set of Struts
templates using ActivityGraphs for quite some time now.

Tony
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Wouter
> Zoons
> Sent: Saturday, August 02, 2003 12:11 PM
> To: [EMAIL PROTECTED]
> Subject: [Andromda-user] accessing Activity Diagrams
>
>
> hello,
>
> anybody has any ideas on how about to have access to the activity
> diagrams in the UML model, would one need to write extra AndroMDA code ?
>
> I am attempting to generate Struts front-end code from my UML model, I
> wish to use activity diagram for this task (rather that the class
> diagrams as in the AndroMDA release bundle), but I have issues trying to
> get the different diagrams and state machines
>
> any ideas are appreciated ;-)
>
> greetz
> Wouter.
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072
> 303_01/01
> _______________________________________________
> Andromda-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/andromda-user



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to