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.

Messages - Uffe

Pages: 1 2 [3] 4 5 ... 73
Uml Process / Re: Action pins and instances of artifacts
« on: November 28, 2017, 11:06:29 pm »
Why does UML prohibit this connection? (Or, why does EA claim that it does?)

It sounds like EA's validation code saying "it's an artifact" and using the artifact rules rather than "it's an instance" and using the instance rules. Probably worth a bug report.

Done. Btw, EA does the same thing for activity parameters: object flows between parameters and objects are allowed, but those between parameters and artifact instances are not.


Bugs and Issues / Re: EA 11 and Windows 10
« on: November 27, 2017, 10:57:22 pm »
If you've already upgraded and are in a bind, as a holdover solution you might consider using a virtual machine. Oracle's VirtualBox is free for at least personal use (don't know about professional) and simple to set up. You can make it integrate pretty seamlessly with your local network and even your host desktop if you like.

Of course, you also need a Windows 7 license for this approach to work.


Uml Process / Re: Action pins and instances of artifacts
« on: November 27, 2017, 10:19:57 pm »
EA lets me draw object flows between actions or action pins and instances of classes (objects). This is useful for when you want to show the object states explicitly in your activity diagram.

But if I make an instance of an artifact, EA says the requested connection is not UML compliant. Why is this?

I can work around it and force EA to accept this construction. That's not the question. The question is, why does UML say I should not make instances of artifacts and have them be the endpoints of object flows, like I can with instances of classes?
It may be because Artifacts are always instances.

That doesn't answer the question. I'm aware that in EA artifacts are a hybrid of classifier and instance: an artifact instance can itself be the classifier of another instance, which an object (or class instance) cannot -- but if anything that should prevent me from creating instances of artifacts, not restrict which connectors I can draw to those instances once I've created them.

Why does UML prohibit this connection? (Or, why does EA claim that it does?)


Hi Guillaume,

Just a quick hit to say I've done Add-In WiX installers before. I don't have one here, but I'll have a look tonight.

I spent this weekend trying to create a Visual Studio template for EA Add-Ins. It almost almost works -- but Studio creates an extraneous directory between the solution directory and the two projects that I create (for the Add-In DLL and the WiX installer). If anyone's got any input on that, it'd be a lot of help.


General Board / Re: Defined variables / string interpolation
« on: November 18, 2017, 03:32:31 am »
Hi Colin,

The nearest thing I can think of is the word substitution feature, which allows you to replace a number of predefined terms in generated documents. It does not apply to diagram rendering nor to HTML reports, and you can't add your own terms for substitution. (Although that could probably be hacked around somehow.)

Related to this is the project constants feature, which allows you to define your own constants for use in report generation, but these are referred to from within document templates and are not substituted in the text pulled from the model.

Each element and connector has an alias, which can be presented instead of (or in addition to) the name, but this won't get you very far if you need multiple substitutions for a single term.

A set of AddIn-calling shape scripts could do it, but those only apply to diagrams and the performance would be atrocious. Simply put, this is not a concept that exists in EA's design. Trying to add it would be a lot of work and would result in a patchy solution at best.

Maybe something could be done with the cloud server and WebEA, but I doubt it.


General Board / Re: MDG - Calculating a tagged value from other tags
« on: November 17, 2017, 07:44:43 pm »
Yes, it would be an Add-In that calculates tagged values based on the tagged values of related elements.

There are always going to be limitations to something like this: since EA has no server1 you can't get true automation, you can only do client-side automation. And since the client-side automation API is limited in what it alerts an Add-In about, there will be cases where you will need to invoke a refresh function, kind of like Sunshine's script.

But I can make it pretty seamless for most cases, meaning updating one element would automatically trigger recalculation of tagged values in others.


1 I haven't investigated the possibilities the pro cloud server affords. "Developers are invited to contact Sparx Systems Support to reveive[sic] API documentation", so it may be it's now possible to do proper server-side automation.

General Board / Re: MDG - Calculating a tagged value from other tags
« on: November 16, 2017, 11:00:06 pm »
I've had clients ask about this as well. I've done some thinking, and with some limitations it shouldn't be that hard to do.
I could cobble something together within a couple of weeks I think.

Is there interest?
(I've no idea if Sparx are planning to address this.)


Bugs and Issues / ActionPin property type not set when created
« on: November 08, 2017, 03:19:16 am »

When I create an action from an activity, EA offers to create the action pins (structural elements). They're given the right names, and their argument properties (behavior, parameter) are correct. But the type is not set.

Is there a reason for this?

I would expect the kind (direction) to be set as well: input for input activity parameters, output for output and return activity parameters.

Am I being unreasonable?

(Inout activity parameters are less straightforward; ideally two pins should be created in this case but I can let that slide.)


OK, thanks.

And is the old cloud server being discontinued?
Or will it continue to receive bug fixes and/or new features?


Hi Uffe,

The type you're after is the pin's property type. You can retrieve its classifier, if it has one, using the undocumented property propertytype.type.




Excluding WebEA and OSLC, is there anything the old non-pro cloud server can do that the Pro Cloud Server Express can't?


Hi all,

Well, clue's in the title really.

Apparently, the Pro Cloud Server includes a license server which supports IPv6.
Is that included in the Pro Cloud Server Express?


General Board / Re: Free: Pro Cloud Server Express (with WebEA)
« on: October 30, 2017, 08:23:43 pm »
Hi all,

This is in reference to the offer posted in the Latest News thread. No speculation please, I'm after an official reply.

Quote from: Sparx
For registered users of Enterprise Architect Corporate (and above) with more than 5 current licenses, Sparx Systems will provide a license of Pro Cloud Server Express with WebEA.
  • Your licenses of Enterprise Architect must be current
  • The Pro Cloud Server Express licenses will match the Enterprise Architect license expiry date

I'm a little confused. Since this is described as an "offer", that implies that the offer won't be valid for ever (although there's no end date listed).

So my question is:
If I qualify and take this offer up, then subsequently renew my 5+ Corporate+ licenses, will the Pro Cloud Server Express license expire? In other words, is this a one-time offer?

Or should it be read to mean that the Pro Cloud Server Express comes free of charge for customers with 5+ Corporate+ licenses? Meaning that as long as I pay for 5+ yearly client renewals, my Pro Cloud Server Express will keep on keepin' on?

If so, how do I renew my Pro Cloud Server Express license?


General Board / Re: Swimlines attribute
« on: October 28, 2017, 12:24:18 am »
If an attribute is read-only in the API, the approved (well...) procedure is to use the hidden and undocumented Repository.Execute(), which takes a string containing an SQL statement and passes it to the database for execution.

In this case, you'd pass something like "update t_object set PDATA1=X, PDATA2=Y where Object_ID = " + element.ElementID



This isn't quite my area, more Geert's, but the API documentation says "style: String - the name of the style in the template; defaults to Normal style".

So if you're specifying a style that exists in the stylesheet but not in the template, that might be why. Try specifying a style that's in the template but not the stylesheet and see if that works.


Pages: 1 2 [3] 4 5 ... 73