#30 — ArgoUML default model with data types, stereotypes and tagged value definintions for ArchGenXML

by Pander last modified Jan 05, 2009 09:25 AM
State Tested and confirmed closed
Version:
Area UML tool support
Issue type Feature
Severity Medium
Submitted by Pander
Submitted on Mar 03, 2006
Responsible
Target release:




Hi all,

I have put together an XMI file for ArgoUML 0.20 so that in stead of the default Java data types, stereotypes and tagged value definintions, it provides a set specifically for ArchGenXML. This provides faster Class Diagram development in ArgoUML because only the settings allowed for ArchGenXML are available.

Could this be tested and perhaps get distributed with ArchGenXML?

Regards,

Pander
Added by Reinout van Rees on Mar 03, 2006 02:26 PM
Issue state: unconfirmedopen
Target release: 1.5.0None
Responsible manager: reinout(UNASSIGNED)
Sounds pretty nice, but I don't have argouml. Could you put this on the archetypes-users mailinglist with a pointer to this issue? That should get us a reaction from the argouml users pretty quickly.
Added by Pander on Mar 03, 2006 03:36 PM
Test version 0.2, 03 Mar 2006

Not all tag definitions are there, will be added soon.
Added by Pander on Mar 03, 2006 05:20 PM
version 0.3 with all tag definitions 2006 Mar 03
Added by Pander on Mar 06, 2006 08:31 AM
Use this model for ArchGenXML in ArgoUML in this way:

  java -Dargo.defaultModel=ArchGenXML.xmi -jar argouml.jar
Added by Pander on Mar 06, 2006 04:31 PM
Final release candidate version 0.4 2006-03-06, if no comments are send, this will become version 1.0
Added by Sean Fulmer on Mar 10, 2006 02:19 AM
You're missing a tagged value for i18ncontent
Added by Reinout van Rees on Mar 14, 2006 08:06 AM
Issue state: openin-progress
Responsible manager: (UNASSIGNED)reinout
I already saw someone mention it on the mailinglist "hey, look at that if you've got argouml", so I'll include it. Could you write a short howto on how to use it with one or two screenshots? That'd really help.

If you give me your username I'll add you to our documentation area.
Added by Reinout van Rees on Mar 14, 2006 08:13 AM
I've added your 0.4 to the samples/ directory of ArchGenXML (argouml_profile.xmi).
Added by Pander on Mar 14, 2006 10:53 AM
Hi Reinout,

My username is Pander and I can make a short HOWTO as you requested.

Perhaps it is better to put the final version not in samples but in root of (or in another place) of ArchGenXML since it is not a sample but a top level UML model to use in ArgoUML.

Regards,

Pander
Added by Reinout van Rees on Mar 14, 2006 06:27 PM
I added you to the doc area.

About the directory: I dislike putting it in the root, it's too crowded already. And the samples directory is where we keep other UML files. Perhaps the doc directory (though that's copy-pasted from the tutorial here at plone.org, so not ideal). Ah well, perhaps we should make a poseidon/samples/ and a argouml/samples and argouml/base.xmi and so. Feedback?
Added by Pander on Mar 15, 2006 01:12 PM
I agre with the suggested path and file names.

Could you enable the uploading of images for How-tos?
Added by Pander on Mar 17, 2006 10:43 AM
Added how-to in UML Tool section for review, please enable how-to to upload images.

Version 0.5 2006-03-17, renamed to default.xmi and added i18ncontent).

From which version will this be in ArchGenXML as argouml/default.xmi?
Added by Reinout van Rees on Mar 17, 2006 10:59 AM
I put it in argouml/argouml_profile.xmi, as 'default.xmi' doesn't really tell you anything about the purpose. (Your 0.5 version, btw.)

I tried enabling images for howtos, but I can't. PloneHelpCenter restriction. So you either have place your image elsewhere or you have to replace the howto with a tutorial. I consider it a PHC bug ;-)
Added by Reinout van Rees on Mar 17, 2006 11:02 AM
About the image: place it in http://plone.org/[…]/archgenxml-manual, and add '_for_argouml_howto' or so in the filename. Quickest solution.
Added by Pander on Mar 17, 2006 01:41 PM
What is the release version of ArchGenXML for this? Please put this in the how-to at TODO-version and in the issue tracker.

Please review and publish the howt-to.

When that is done, I think this issue is solved :)
Added by Reinout van Rees on Mar 17, 2006 02:11 PM
Issue state: in-progressresolved
Target release: None1.5.0
Great job, great howto. Thanks!
Added by (anonymous) on Mar 25, 2006 05:18 PM
     version 0.6 2006/03/25 Pander fixed duplicate id for tag definition i18ncontent

changed id of i18ncontent from 522 into 523
Added by Fred van Dijk on Mar 30, 2006 02:17 PM
Here is the 0.6 version that has also been added to the ArchGenXML trunk in the argouml. The last version posted here is the 0.5 still containing the double defenition.

Added by Pander on Mar 30, 2006 02:36 PM
Thanks for submitting new file, last time I was unable to do so. I thought it was not possible anymore since the issue has been closed. Perhaps I just forgot to log in... Thanks again for uploading.
Added by Mark Phillips on Jun 26, 2006 02:47 PM
I believe there are one or two tags missing.

According to Archetypes 1.3.1 Widget Reference (http://plone.org/[…]/arch_widget_quickref_1_3_1) there are two widget tags that control the visibility of the widget - widget:visible and widget:modes. Neither tag is in the drop down list. There is a 'visible' tag, but it does not seem to have any effect on the visibility of the widget. The tag widget:modes does seem to work if I add it manually to the field schema.

I am using
Plone 2.1.2,
Zope (Zope 2.8.6-final, python 2.3.5, linux2),
Python 2.3.5 (#2, Sep 4 2005, 22:01:42) [GCC 3.3.5 (Debian 1:3.3.5-13)],
ArchGenXML 1.4.0-beta2
ArgoUML-0.20
argouml_profile.xmi version 0.5 2006/03/17

My questions:

1. Is widget:visible deprecated in favor of widget:modes?
2. What does the tag visible do?
3. Please add widget:modes to the model if that is the right tag.

Thanks!

Mark
Added by (anonymous) on Jul 04, 2006 05:08 PM
=== HOWTO make loading of profile a single click in windows. ===

Windows: How can I get ArgoUML to load when I double-click on a model file?

    The trick is to do things in two steps. First, open Windows Explorer and find a .zargo file, and then right-click on it. You should get the normal Windows menu, including an Open or Open With option. At this point, give a description for the file like "ArgoUML Model", and tell Windows to use Notepad to open the file. That's not what you want to do ultimately, but it does get Windows to accept the .zargo extension as representing a valid file type.
(comment: I clicked on the argouml_profile.xmi file and this entire operation is for the .xmi extension not .zargo )

    Now close, and then reopen Windows Explorer. If you are using a version of Windows prior to XP go to the Explorer menu and select View->Options. For XP you would use Tools->Folder Options. You should get a two (or more) tabbed dialog. Click the "File Types" dialog and then scroll through the list for the Description you gave - in this example "ArgoUML Model". Click to select that file type, and then click the "Edit" button.

    Now, click on the "Open" action and then the "Edit" button there. You will then get a dialog that has a line for entering in the application action that will have a line for using Notepad to open the file. Replace that line with:

    "C:\Program Files\Java\jre1.5.0_06\bin\javaw.exe" "-Dargo.defaultModel=your_PC_path\argouml_profile.xmi" -jar "your_PC_path\ArgoUML-0.20\argouml.jar" "%L"

    Substitute your path to your JavaW.exe and ArgoUML.jar files if they aren't located where specified above. Click OK, then click OK, then click OK (three buttons on three different levels of the dialog).

    You can now double-click on your model and have ArgoUML instantly loaded.

(source: http://argouml.tigris.org/faqs/users.html#win_link )
( for comparison here is my open action in windows:
"C:\Program Files\Java\jre1.5.0_06\bin\javaw.exe" "-Dargo.defaultModel=C:\Documents and Settings\Ivan\Desktop\ArgoUML-0.20\argouml_profile.xmi" -jar "C:\Documents and Settings\Ivan\Desktop\ArgoUML-0.20\argouml.jar" "%L"
)
Added by Pander on Aug 02, 2006 11:32 AM
version 0.8 2006/08/02 Pander added widget:maxlength
Added by Pander on Aug 28, 2006 09:11 AM
version 0.9 2006/08/28 Pander added for widget: rows, cols, divider, append_only, format, future_years, starting_year, ending_year, show_ymd, show_hm, thousands_commas, whole_dollars, dollars_and_cents, addable, allow_file_upload
Added by Norbert Klamann on Sep 12, 2006 03:49 PM
I can't manage to start this stuff under windows with your file loaded. TheCommand Line expands to this :
 
D:\argouml>"C:\Program Files\Java\jre1.5.0_06\"\bin\java.exe -Dargo.defaultModel=D:\argouml\ArchGenXMLprofile.xmi -jar "D:\argouml\argouml.jar"


Argouml starts and shows an empty file. When I insert a class, I don't see any of the stereotypes.
Added by (anonymous) on Sep 12, 2006 06:29 PM
Norbert, you seem to have your double quotes in all sorts of funny places. Perhaps that's the problem?

Otherwise, pander: can you help? I'm not on windows/argouml.
Added by Pander on Sep 12, 2006 07:25 PM
Norbert, sorry, I'm also on GNU/Linux only.
Added by Norbert Klamann on Sep 14, 2006 07:41 PM
Seems you are right about the double quotes ! Thanks a lot.
Added by Pander on Dec 20, 2006 02:57 PM
version 1.0 2006/08/28 Pander added languageIndependent
Added by Sune Broendum Woeller on Jan 07, 2007 06:26 PM
We should update the model file on trunk when we change it - lets keep it in svn. Pander: you have repository access?

Just uploaded the newest file to svn.

A nice feature would be to generate this model from the current state of agx, to get new tgvs etc. automatically. Of course, not all possible tgvs are defined in the agx code, but we could create a list of those ekstra possibilities, to include in the generation of the model. (Standard archetypes field / widget properties etc.).

Added by (anonymous) on Jan 08, 2007 09:44 AM
Hi Sune,

No I don't have svn access, can you set this up for me?

Thanks, Pander
Added by Maurits van Rees on Jan 08, 2007 10:00 AM
Pander, you can request write access by following the steps in this document:

http://plone.org/development/info/write-access-collective

That document is for write access to the collective. You need access to archetypes, so change your request accordingly.
Added by Pander on Mar 01, 2007 03:04 PM
version 1.4 2007/03/01 Pander added columns, allow_empty_rows, widget:auto_insert, widget:columns

Still nobody provided me with upload access although I created a ticket for it.
Added by Reinout van Rees on Mar 01, 2007 04:09 PM
Pander, I looked up your username on plone.org and you *are* a member of both archetypescommitters and collectivecommitters. So you should be able to update the file yourself. Perhaps you need a 'https' check out instead of a 'http' one?
Added by Encolpe Degoute on Mar 01, 2007 10:22 PM
Now there's another problem because you don't use svn: your first conflict

- version 1.0 2006/08/28 Pander added languageIndependent
- version 1.1 2007/02/19 Xiru added widget:visible, access, Modify
+ version 1.0 2006/0?/?? Pander added languageIndependent
+ version 1.1 2006/0?/?? Pander added storage
+ version 1.2 2007/01/22 Pander added widget:visible
+ version 1.3 2007/02/19 Pander renamed allowed_content_types into allowable_content_types, added default_content_type and default_output_type
+ version 1.4 2007/03/01 Pander added columns, allow_empty_rows, widget:auto_insert, widget:columns
Added by Reinout van Rees on Mar 02, 2007 10:20 AM
The best solution to all this is of course to generate the .xmi file. The tagged value and stereotypes lists on plone.org are already generated (nicely rendered as structured text) from the code itself.

So: could someone make a bit of an overview of what ought to end up in the .xmi file? Only stereotypes and tagged values? Or also datatypes? Etc. Preferably in an email to plone.users.
Added by (anonymous) on Mar 05, 2007 08:59 AM

I fix argouml_profile.xmi in trunk and in the 1.5 branch:

http://dev.plone.org/archetypes/changeset/7618
http://dev.plone.org/archetypes/changeset/7619

Added by (anonymous) on Aug 27, 2007 03:43 PM
I am trying to use this .xmi file with argoUML version 0.24.

The stereotypes view, action, form are not available for operations. They are available for methods, but they do not generate the expected output with ArchGenXML. The method seems to generate no code. Operations seem to generate methods on the Archetype class.

I tried changing the base class from Method to Operation for the view, action and form stereotypes, but it still did not generate the expected code.

Does anyone know how I should progress?

Thanks - Kevin
Added by (anonymous) on Aug 27, 2007 07:24 PM
I have worked this out. When I edited the profile file, the stereotypes were still somehow connected to Methods. I reverted to the standard profile and I added the new stereotypes to my model. They work fine now.
Added by Pander on Aug 28, 2007 11:49 AM
Anonymous (pleass use a login), was this problem related to your own specific or are there some changes that need to be applied to the version distributed with ArchGenXML? If the latter is true, please post your changes here or apply them in trunk.
Added by Tom Morris on Nov 21, 2007 05:43 PM
This may not be the best place to mention this since the issue is resolved, but hopefully the right people are monitoring updates anyway.

The profile mechanism is changing for ArgoUML 0.26. Users can now manage profiles using the GUI and remove the Java profile or even the default UML profile as well as add their own profiles. I think the ArchGenXML profile should be usable in this scheme with only minor tweaking (or perhaps none).

One important thing to bear in mind though is a parallel change that was made at the same time. Previously profile elements were copied on reference into the main model. Instead, no profiles are linked and the linkages are maintained using the xmi.id values. The significance of this change is that the xmi.id values *must* remain stable as the file is updated or the linkages will break (or worse change to something that wasn't intended).

Feel free to email me on Tigris (tfmorris) with any questions.
Added by Encolpe Degoute on Nov 21, 2007 10:05 PM
Issue state: resolvedclosed
Target release: 1.5.0None
Responsible manager: reinout(UNASSIGNED)
Where can we find such a beta release ?
http://argouml-downloads.tigris.org/devrel.html doesn't show any release since 0.25.2.

Any binary or JWS version is accepted.

For argouml, we can continue the discussion on http://plone.org/products/archgenxml/issues/152
Added by Ivor Gibbon on Apr 30, 2008 09:34 AM
I'm not the anonymous who posted the earlier response with respect to stereotypes on operations/methods in ArgoUML but I'm having the same problem (I think).

The xmi file which came with the archgenxml-2.0 version seems to only allow stereotypes for action,view etc on the ArgoUML method rather than the operation. ArchGenXML seems to look for the stereotype on the operation and not finding it, creates a python method rather than generating a view or action.

I have attempted to run the ArgoUMLProfileGenerator.py to rebuild the xmi file, but this aborts with messages about "ImportError: cannot import name utils" (I'm running Plone 3.0.5 and ArgoUML 0.25.2 on Windows XP).

Ivor.
Added by Ivor Gibbon on Apr 30, 2008 09:35 AM
I'm not the anonymous who posted the earlier response with respect to stereotypes on operations/methods in ArgoUML but I'm having the same problem (I think).

The xmi file which came with the archgenxml-2.0 version seems to only allow stereotypes for action,view etc on the ArgoUML method rather than the operation. ArchGenXML seems to look for the stereotype on the operation and not finding it, creates a python method rather than generating a view or action.

I have attempted to run the ArgoUMLProfileGenerator.py to rebuild the xmi file, but this aborts with messages about "ImportError: cannot import name utils" (I'm running Plone 3.0.5 and ArgoUML 0.25.2 on Windows XP).

Ivor.
Added by (anonymous) on May 16, 2008 02:30 PM
Ivor Gibbon:
Yes, I have the same problem. However, I've found its solution: just copy ArgoUMLProfileGenerator.py to one-level-higher directory, and run it. Should work.
Added by Rob Hills on Jun 30, 2008 05:24 PM
Hi Pander,

I have version 1.10 of argouml_profile.xmi and I have been trying to find out if that's still the latest version. I'd thought I'd downloaded it from the tigris.org site, but now I can't find it there anywhere.

Is argouml_profile.xmi still at tigris.org? If so, where can I find it? If not, is it available for download elsewhere?

Also, what is the current version?

Cheers,
Rob Hills
Waikiki, Western Australia
Added by Pander on Jul 02, 2008 08:20 PM
Hi Rob,

Latest version is part of ArchGenXML, please have a look there.

Regards,

Pander
Added by Rob Hills on Jul 03, 2008 12:21 AM
Thanks for the reply Pander,

I had installed the latest version of ArchGenXML via Easy Install and I have hunted through the ArchGenXML installation (under the Lib/site-packages/archgenxml-2.0-py2.4.egg/archgenxml tree) for argouml_profile.xmi without success. I also had a copy of archgenxml-2.0.tar.gz on my pc so I looked through that and found the file - in the /archgenxml-2.0.tar/archgenxml-2.0/umltools/argouml/ directory inside the tar.gz.

Should argouml_profile.xmi be installed somewhere by the Python Egg installation process or is this expected behaviour.
Added by Pander on Jul 03, 2008 08:15 AM
download from http://plone.org/products/archgenxml/
and see archgenxml-2.0/umltools/argouml/argouml_profile.xmi

No responses can be added.