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 - ngong

Pages: [1] 2 3 ... 5
General Board / different sets of Default Types
« on: January 30, 2018, 08:00:24 pm »
Why are the default types used for parameters and returns in operations different from those used with action pins and object-nodes?

The problem:
I used to explain an algorithm designed for an operations by one or a tree of activity diagrams. Traceability "by-name" requires to have action-pins or parameter-object-nodes in activity diagrams as of the same name and type as those used for the definition of the explained operation e.g. in an interface specification.

Many of these data flows are of simple types. I would like to use default types as to be quick in specifications. Taken the two different sets of default types, this is not possible. I got forbit to use default types for all designers.

Alternatively - and even better - I would like to populate the default types selection drop-down menu, in order to use my own set of base types.

Example using default types:

operation(par: int): boolean

(input) action-pin: Integer
(ouput) action-pin: Boolean

This can hardly be sold as traceability, at least it would be needless added complexity.

General Board / Re: SCC interface to PTC of EA does not find Unique IDs
« on: January 27, 2018, 03:05:41 am »
Found two possible workarounds - seems like a complicated problem in EA, PTC, SCC, or Windows.

If your WIndows is very new using EA together with SCC-enabled PTC:
  • as a first step, do not try to rebuild an .eap file from a sandbox populated in PTC from some other Windows installation
  • instead: get an .eap file from a colleague which already uses the SCC-enabled PTC via some Unique ID (e.g. open it, -> get-all-latest), or
  • instead: create some new (toy) Unique ID by enabling a package for configuration control in some local .eap to PTC,
after that you are able to rebuild from any sandbox that is bound to a Unique ID.

a colleague analysed differences in the registry, and changed it on the Windows that shows the problem, successfully.

General Board / Re: SCC interface to PTC of EA does not find Unique IDs
« on: January 18, 2018, 04:17:14 am »
Yes, thank you Helmut for your contribution.
Sure, setting the SCC Integration in PTC - using admin rights - is the first step. Some colleagues and me, we are working successfully with PTC using EA.
The problem is - and I am facing this with several new attempts - that I can not get some of the PCs of colleagues to work with PTC for the first time.
If the link to SCC works ones - it works forever.
Somehow EA shall lookup already existing Unique IDs that come with the cloned PTC project, the sandbox, hosting EA packages.

I am looking for someone who knows the algorithm how exactly EA finds existing Unique IDs in order to narrow the problem.

General Board / Re: SCC interface to PTC of EA does not find Unique IDs
« on: January 11, 2018, 04:50:43 am »
Thank you for your answer, Simon.
However, it does not solve my problem.

On the link you provided there is another link:

In Step 2 it tells about "previously defined version control configurations". That is my case: I already defined the Unique ID on one PC, and - sometimes on other PCs - the drop down appears to be empty instead of showing already defined Unique IDs. Sometimes it works as described in the other link.

Why? What could be the difference? Where to look further?

When I do not solve this problem, I can not share the EA model that is checked into PTC with some colleagues.

General Board / SCC interface to PTC of EA does not find Unique IDs
« on: January 10, 2018, 06:26:46 am »
What I did:
check-in the top-most and other packages as items in PTC, PTC has an SCC integration by a Unique ID for this EA project.
in PTC enabled SCC integration on a colleagues PC (as win7 administrator)
created a sandbox of that PTC folder on that PC.
created a new empty project in EA.
tried to configure Version Control by selecting the local path of the sandbox.
selected "MKS SCC Integration" for the field "SCC Provider" (the only choise)
opened the "Unique ID" pull-down to select it for the given EA project stored in the given PTC sandbox.

What I expected:
a list with just the Unique ID to appear in the pull-down - as known by PTC and probably derived by SCC and EA from the sandbox.

What I got:
an empty list - I cannot have EA to link to the Version Control Settings of the EA project found in the sandbox.

What I checked:
I can - and some colleagues can do also - create a new project from the PTC sandbox on the original PC and colleagues PCs.
I checked every step on my and on the colleagues PC to be sure they are the same.
I restarted EA, I rebooted the PC, ...

Nothing helped.

It seems that sometimes or for some reason EA is not able to find the available Unique IDs associated with the PTC sandbox.

What could cause this missing linking?
Or: what would be a next step to find out?

General Board / Re: Plugin of Script?
« on: October 21, 2017, 06:21:02 am »
qwerty, Paolo - thank you for your helpful contribution: a script for processing all interfaces on the current diagram would do - at least in the first place.

Paolo - I looked around Shapescript examples. I understood that they are used to do other notations than provided by UML and they are bound to a certain stereotype. That is not what I want. I like to switch some Rectangle/Circle property somewhere, not to draw anything.

From Geerts scripts tutorial I found a Diagram script close to what I try to achieve. It is fairly easy to loop over all interfaces found on a diagram.
But how to determine whether the shape is rectangle or circle? And how to switch it? I could not find a certain property or function of the located EA.element. I also wonder whether this should be a property of that interface EA.element. It should show up as a circle on the one current diagram only! For my understanding it could be a property of the relation between the Interface EA.element and the Diagram it is located on. Hmm ... how to find that in the Automation Object Model?

I feel I am close but would like to ask for some help here.

Kind Regards


General Board / Re: Plugin of Script?
« on: October 20, 2017, 09:34:08 am »
Thank you for the question qwerty, let me explain:

My real problem is that I am doing re-engineering instead of SW architecture (guess that is the way 90% of all SW architectures for real commercial programs are created). The prototype works somewhat and the company (SW quality) likes to know what they got and have to maintain. External auditors also are more strict in this. Re-engineering leads to a lot of .h-files to import as UML interfaces for having tractability to the code.

Showing these interfaces on class diagrams for detailed view is no problem.
Showing these interfaces (and sub- and super-sets of them) in component diagrams is required in order to have a base for interactions (e.g. sequence diagrams), the basis of traceability to SW requirements, module requirements and integration tests.
On component diagrams I do not need the details of the interface - just the name. Usage of circle notation is the way we decided to do - as opposed to forks and lollipops. My task is to place the massive amount of interfaces - together with their sub- and super-sets - on component diagrams. As it is a big software I have lots of hierarchically ordered component diagrams - all with inner and external interfaces. Turning each of these interface to circle notation takes a fair amount of my time - too many clicks.

As I understood scripts do not help much to save clicks.

Therefore I have to learn about templates (not sure though if that helps) or have to apply EA-Matic to get an "Component Diagram Change" event for triggering (if that exists) to check all interfaces of that diagram for circle notation.

General Board / Re: Plugin of Script?
« on: October 19, 2017, 09:42:25 pm »
Ok, thank you for your help qwerty, Geert, and Simon.

What I understood is:
I need an add-in or a script applying EA-Matic that puts all interfaces found in a Component diagram and not already process to circle notation, e.g. in case the diagram changes. Alternatively I may also learn about templates. Then I could create a template for Component diagram that shows interfaces by default as circles.
I got to forget the idea of using a shortcut key.

I am pretty sure not to have understood everything - please correct.

Kind Regards

p.s. if I would not be able to reduce the number of clicks, any automation would be worthless.

General Board / Plugin of Script?
« on: October 18, 2017, 05:12:21 am »
In order to speed up my everyday work I need to automate (put on a shortcut key)
- right-click on an element / Advanced /  Use Circle Notation (preferably for the set of selected elements)

As I do not have any experience in writing a plugin or a script I tried to find out, what would be the best.
However, I found several tutorials that would bind me a day or so, but I could not find out whether it is possible what I am trying to achieve.
Is it possible?
If so what the closest example to choose?


General Board / too many stereotypes
« on: October 01, 2017, 03:44:03 am »
Is there a way to identify and delete all stereotypes from a model which are not backed-up by an imported profile?

General Board / cannot find my classifier profile tag at an interface
« on: September 27, 2017, 05:35:30 am »
Tags of a stereotype extending Classifier meta class do not appear at Interfaces.

EA seems to identify only the Component and Class meta classes as inherited from Classifier. According to UML 2.5 DataType and Interface meta classes - at least - should be Classifiers as well.

In order to cope with variants I introduced a stereotype named variant-specific with two tags: variant and replaces. The idea is to have all elements as part of the reference model that do not use the variant-specific stereotype. If a list of variants is entered in the regarding tag, that element contributes to those variants, optionally replacing elements of the same type as found in the reference model. (If you want to exclude an element from a variant, introduce an empty one that overloades it. This could be a whole package.)

As all my variing elements are Components, Classes, DataTypes, and Interfaces I thought it would be a good idea to use Classifier as a meta class for "variant-specific".

My workaround so far:
Define the one stereotype variant-specific as an extension to all meta classes where one likes to see those tags. (This results in the wanted behavior of EA, but what about the UML 2.5 compliance, regarding the set and interrelationsships of meta classes?)

General Board / Re: Primitive Types in Tags
« on: September 27, 2017, 05:09:32 am »
The profile helper solved my problem. I would appreciate that you would be able to add tags to stereotypes not by adding attributes (the types selection issue seems to be unclear here), but only by the profile helper. In that case I would have searched for it.

General Board / Re: Primitive Types in Tags
« on: September 18, 2017, 09:19:08 pm »
Thank you qwerty for immediate answer - as my need is urgent.

I could not apply your answer to my problem: the "const" attribute of the Attribute of a stereotype (did you mean that one with your answer "a tag can be const"?) has the value "false".
In your link to some explanation of "Tagged Value Type"  I can find the type "String" (with a capital "S"). But I do not find (may be I am blind?) any explanation how to get that list to attributes of a stereotype in order choose "String" from the types pull-down list. When I pull-down the list of types at the stereotypes attribute, I only see some Java types (I guess), missing the String type. I do not see the Tagged Value Types your link points me to. I do not know how to change that list of types. I would be happy if I would be able to choose from the Tagged Value Types your link points to.

However, I did some progress: I found an older stereotype-element with a String attribute. I copied, renamed and linked it to an appropriate meta-class. The String attribute remained and I can enter something in the tags value when applying the profile and that stereotype in a model. (This proofs that I totally do not understand, how Tagged Value Types work, even not in the simplest String case.)

Is there some more context for a newcomer like me?

Kind Regards


General Board / Primitive Types in Tags
« on: September 18, 2017, 06:05:09 pm »
Sometimes I cannot add any value to a tag of an element of a certain stereotype. I got no clue, why.

The chosen primitive type for the regarding attribute in the profile that defines that stereotype may be the cause for my problem.

How do I define the set of primitive types to choose from in creating the profile? Selecting a certain Product Name in the Code Engineering Datatypes? If so is that binding for the whole model or just one element? What would be the best to choose for creating attributes for stereotypes that should become a string value?

Any advice or link to read would be welcome.

Kind Regards


p.s. even if I change the datatype back to int, I am not able to enter any value. Maybe there is different reason why I cannot enter a tag-value than the profile datatype.

General Board / Best way to share a package
« on: September 10, 2017, 11:17:29 pm »
Assume 2 or more models sharing a set of basic data types in a certain package.
It has been xmi exported by the front-most project and imported by others at starttime.
All projects refer to the same GUID when they refer to a certain datatype.

Now assume the front-most model extends that basic types package, corrects some flaws and improves some of the types.
What would be the best strategy to get those changes to the other model as well?

Pages: [1] 2 3 ... 5