Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Steve Wartik

Pages: [1] 2
General Board / Using ValueRestriction in NIEM 3.0
« on: December 15, 2016, 04:01:48 am »
I'm using Enterprise Architect's NIEM capabilities to generate an IEPD. What is the correct way to create a «ValueRestriction»? The UML Profile for NIEM (V3.2 Beta) shows LongitudeDegree as a specialization of decimal (Fig. 7-20). When I create something analogous, the corresponding XML schema has errors:
  • The name attribute of the xs:simpleType includes the schema's prefix. It looks something like <xs:simpleType name="prefix:LongitudeDegreeSimpleType">.
  • The restriction uses prefix niem-xs rather than xs. That is, it looks like <xs:restriction base="niem-xs:decimal">. This doesn't work, because niem-xs:decimal is a complex type, and a simple type can't have a complex type as its base.
Can someone tell me the correct paradigm? Thanks in advance.

General Board / Sparx EA Font
« on: July 15, 2008, 04:36:56 am »
Is there a way to change the font Sparx EA uses, especially in the properties fields?

I'm dealing with data that has directed quotation marks, i.e., non-ASCII characters. The glyphs are, at least to my tired old eyes, indistinguishable from undirected quotation marks in EA's default font or from each other. I figured that I might have better luck with a different type face, but EA doesn't seem to react when I change Windows' font properties

Thanks for any and all help.

General Board / Stereotype Synchronization
« on: April 18, 2008, 02:47:58 am »
Can someone please explain, precisely, the conditions under which Enterprise Architect determines it needs to synchronize tagged values?

Every time I synchronize a stereotype in one of my projects, it creates duplicates of all the tagged values. I'm thinking the only solution is to hack the database manually. I will happily do so, but my attempts so far haven't caused EA to stop synchronizing the things I think are already quite well synchronized, thank you very much. Hence my question.

Steve Wartik

General Board / XMI Representation of Profiles
« on: April 16, 2008, 06:41:28 pm »
I've created a model with several custom stereotypes that I've imported through profiles.  One of the profiles is named "Attributes Profile". It contains a stereotype named "text".

I've exported this model to XMI. The XMI file contains tags of the form:
<Attributes_Profile:text base_Attribute="EAID_..." text="1"/>
Most of this is obvious. But what is the meaning of the text="1" part? Where does the value come from? Also, it's present in some <Attributes_Profile:text/> tags but not others. When is it needed, and when is it not needed?

Thanks in advance for any and all help.

Steve Wartik

General Board / MOF Validation
« on: October 26, 2007, 12:15:40 pm »
The documentation for EA 6 (build 778, to be precise - URL is says you can validate an EA model against the MOF.
  • Is this feature still present in version 7?
  • If so, how do I invoke it?

General Board / Duplicate Object Properties
« on: October 22, 2007, 11:15:32 am »
I'm working with the database representation of a class model I've developed. Some of the tags are repeated in the t_objectproperties table.  That is, the rows are identical except for the PropertyID column.  I might expect this kind of behavior if I was using versions, but it happens when I import an XMI file.  It doesn't show up anywhere in the user interface: the tag has exactly one value, just as I'd expect.  If I export the model back to XMI, the file contains (roughly):

 <tag xmi:id="xxx" rest/>
 <tag xmi:id="xxx" rest/>
 <tag xmi:id="xxx" rest/>
 <tag xmi:id="xxx" rest/>

That is, the tags are duplicated.  The ID is identical in all 4 instances.  Is this a bug or a feature?  If a feature, how do I determine the tag's current value?

General Board / Establishing MySQL Connection
« on: March 20, 2007, 12:42:25 pm »
Help! I can't get EA to connect to a database repository. More precisely, I've set up an ODBC driver for MySQL. When I click the "Test" button, the MySQL connector window tells me the connection was made. So far so good. So then, in EA, I:
    [1] click "Connect to Server..."
    [2] select "Microsoft OLE DB Provider for ODBC Drivers"
    [3] connect to my data source in the connection tab (the Test Connection button works here too)
    [4] click ok

But now EA invariably tells me there's no current project.

What am I doing wrong?

Thanks for any and all help.

Steve Wartik

Bugs and Issues / How can I remove stereotypes?
« on: April 10, 2008, 09:39:53 pm »
I have a model in which I have assigned multiple stereotypes to certain classes. I'm having several problems with them. First of all, they often show up multiple times in diagrams. In other words, I have stereotypes "subcls" and "supercls" assigned to one of my classes, and in a diagram it displays as <<supercls,subcls,supercls>>.

Furthermore, I can't remove the stereotypes. If I click the "..." box next to the stereotype menu and de-select stereotypes, it has no effect -- when I click OK, the stereotypes are selected again when I return to that pop-up. Similarly, when I clear the stereotype menu and click OK, the stereotype reappears when I return to the properties pop-up.

Any suggestions? I'm willing to edit an exported XMI file if that's what it takes!



Bugs and Issues / OCL in Model Validation
« on: April 08, 2008, 07:11:14 pm »

Can someone explain to me how Enterprise Architect is processing OCL during model validation?

How is Enterprise Architect using the constraints associated with classes during model validation? A constraint is supposed to apply to instances of a class (right?), so how is it that my class model, which has no instances, is generating OCL violation warnings?


Automation Interface, Add-Ins and Tools / Order of toolbox pages
« on: January 14, 2014, 02:24:12 am »

I'm developing an MDG technology and adding several toolbox pages -- that is, stereotypes extending «metaclass» ToolboxPage. How can I control the order in which Enterprise Architect displays these pages in the toolbox? The default appears to be lexicographical. Do I rename my toolbox pages, or is there another way? Thanks.

I'm developing an MDG technology that includes some custom icons for toolbox items. Enterprise Architect displays some of my icons but not others. I have examined the XML file and verified that it contains the icons. The only things I can see right now are:
  • Enterprise Architect uses the default icon (not my custom icon) for all stereotypes that extend metaclass Package.
  • One of my stereotypes that extends Generalization has the custom icon. Another doesn't.
Any thoughts on this? Thanks.


I have developed an MDG technology. I've been trying to automate certain capabilities using the Java API. I'm puzzled by the Type parameter of the Collection::AddNew method. I recall reading somewhere that, when adding an element from an MDG technology, the correct usage is:

   collection.AddNew(name, "profile-id::element-type")

where profile-id is the ID of the UML profile in my MDG technology (specifically, the value of the id attribute in the Documentation element) and element-type is the name of an element from my MDG technology that is a stereotype.

The odd thing is, sometimes this works and sometimes it doesn't. When it doesn't work, the API throws an exception whose message is "Invalid type".

Can someone provide more information on this topic? What values are acceptable, and why? I suppose some understanding of EA's internals is required; at least, I haven't found anything in the available documentation.  If you know of something, please point me that way. Thanks!

(By the way, I've tried other approaches: not including the profile ID, and using the profile name rather than its ID. These either fail or are unsatisfactory for reasons for which I won't burden this forum.)

Automation Interface, Add-Ins and Tools / MDG Technology "Missing"
« on: August 08, 2012, 03:05:53 am »
What does it mean when the status of an MDG Technology is "Error - Missing"? That's what the Manage Add-Ins window (menu item Extensions>Manage Add-Ins) is showing.

I've verified that the requisite file exists after invoking Tools>MDG Technology Import, so that's not the issue. Any ideas what might cause Enterprise Architect to display this status?

I've developed an MDG technology. When I use use it to create an element in a diagram, it works as I expect. When I use the automation interface to create an element, it doesn't.  The symptoms appear in the tagged values pane:
  • For the "good" element, the label at the pane's top displays a fully qualified path name from my MDG technology (i.e.,  it has the form "ProfilePkg::stereotypeName"). For the bad element, it just displays the element's UML type (e.g., "Package").
  • For the good element, the tagged values pane displays the tags I expect. For the bad element, it doesn't list any tags.
Can someone please explain this behavior to me, and tell me how to get the automation interface working?

Automation Interface, Add-Ins and Tools / Add menu to execute script
« on: February 28, 2012, 08:47:23 am »

I've written some JScript code. I'd like the user to be able execute it through a menu. Specifically, I'd like to add a menu hierarchy to Extensions. Just like the ODM-related menu items, a script would be executed each time the user selects an item. Can someone tell me how to do this? Thanks.

Pages: [1] 2