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

Pages: [1] 2 3
Uml Process / Re: Attribute/tag value with more than one values
« on: December 27, 2020, 03:03:22 am »
Hey Guys, thanks for the replies!
I read about the RefGUIDList. However, I am also using shape scripts and how I understood it won't be easy to use both of them together.

I will try to do it maybe with "loose tagged values"

which connector can I use as a one-to-many tagged value in the profile? It is exactly what I am trying to do..can you show me an example?

Kind Regards,

Uml Process / Re: Attribute/tag value with more than one values
« on: December 26, 2020, 03:12:20 am »

you mean to model every device with a class for example? Actually the whole picture is much bigger, so I actually
need to have the stereotype <<device>> with the tag value the devices. That cannot change..
So there is no way to have an arbitrary and not a fixed number of the values that can be added on the tag value devices?

Kind Regards,

Uml Process / Re: Attribute/tag value with more than one values
« on: December 25, 2020, 04:53:37 am »
The example is a nonsense one just to focus on the problem. I know the tagged values are fixed, but i defined a tag value of type Orange and that gave me the option to add the different color as seen in screenshot 2. I would like the user to be able to add as many colors he wants not just 4(a fixed number).
In my case i want to make a stereotype called "Device" with attribute "devices" and then the user can add in this attribute as many devices he wants from one to many. (as many colors he wants in case of the orange example).
Any hope with achieving something like this??

Kind Regards,

Uml Process / Re: Attribute/tag value with more than one values
« on: December 25, 2020, 12:42:23 am »
Qwerty, what you mean it missed the <<taggedvalue>>?

I also think I did not explain my problem well enough. Let me try again.
So I created the following stereotype "Orange Type" which extends the metaclass class for defining different types of oranges.
This stereotype has a tag value orange of type Orange(see figure).

So after creating this stereotype i applied on the class17(see figure) and I am able to add it 4 individual values for the tag value orange, blue,black, red, orange. (see figure)

So my question is I don't want to be limited to a fix number of values(in our case 4). I want it to be flexible and the user to add as many he wants in the class with the stereotype orange applied on it.

So qwerty, I tried different ideas and on of them was the 2nd one which was more to demonstrate and try to explain my issue.
I hope the orange example is more clear. Any tip how i can achieve that?

Kind Regards,

Uml Process / Re: Attribute/tag value with more than one values
« on: December 24, 2020, 06:13:02 am »
hmm I think it is possible I just don't know how..Because in the first screenshot i sent it worked. I created the profile defined class and was able to add on the same attribute/tag value more than one attribute. However as i mentioned my problem is the upper bound(limitation), that I have manually to add how many values the attribute can take so I just need a way to say keep it flexible the number of values the user can add on an attribute.

In the second screenshot i tried to use relation between the elements(by adding the association) but it did not worked..Can you elaborate more what you mean with relations between elements and how to use them?

Kind Regards,

Uml Process / Attribute/tag value with more than one values
« on: December 24, 2020, 05:28:21 am »
Hello everyone,

I created a stereotype with the name device type. I added the stereotype device of type devices. Devices is a class diagram on my profile
which allows the user to add 4 values on the tag value device. The figure is shown in the following screenshot.

However I would like the number of values the user can add on this tag value to be arbitrary and not a fixed number as 4. So i tried to make the following as can be seen in the screenshot

So i created a second stereotype test2 and added the tag value device of type device types and added an association between them the device types can be from 1 to many. However it does not work..You guys have any idea if something like this is possible, and if yes how to achieve it?

Kind Regards,

Uml Process / Re: Stereotype and Icons
« on: November 02, 2020, 09:09:31 am »
Hey Paolo,

Thanks for your help! I am also working on the semantics which will also depend on the tool being used for this extension and your example was helpful.

Kind Regards,

Uml Process / Re: Stereotype and Icons
« on: October 29, 2020, 11:16:53 pm »

Thanks, I got that it can be done only by nested if's.


Well actually I am creating a "new" language to cover characteristics of Cross-device applications which UML does not consider.
So I choose to not create a whole new language but to extend UML with profiles and not change the metamodel to keep the consistency.
So in the end in CDA we can migrate from one device to another while an action is executed. So I am showing that this action is Migratable
while its running and want to show between which devices it can migrate. So i created the migratable stereotype and the device stereotype to cover this requirement.

You mean that something like that is not allowed...?

Kind Regards,

Uml Process / Re: Stereotype and Icons
« on: October 29, 2020, 06:33:31 am »
Its parents did not took good care of him :P j/k

Thanks for your help I will give it a try :)

Kind Regards,

Uml Process / Re: Stereotype and Icons
« on: October 29, 2020, 05:51:10 am »
Sorry for not making my question clear. I also got confused by your answer. Let me ask it differently on an example

For instance, when I have the command if( hasTag("device","tablet")) --> i show the icon for tablet
if(hasTag("device","")) --> i show no icon and so on..
So what I want is for all the other cases that the attribute is not blank("") or I don't have a predefined icon to show a particular icon.
So when the user adds device = "adadasfaa" or device = "blahblah" or whatever I show this particular icon.

Can something like that be achieved?
Kind Regards,

Uml Process / Re: Stereotype and Icons
« on: October 29, 2020, 01:46:12 am »
qwerty, I will have a look. To add in the property of the hasTag a star or something that represents any character can be done?


actually what I want to achieve is to create a stereotype called for instance "migratable" extending the metaclass "action". Furthermore, I would
like to show between which devices that action is "migratable" and I had the idea to add the devices as Icons which can be more than 1.
So this is the scenario.

So for now the way I did it is I created the stereotype migratable with its properties and another stereotype called "devices" which has as tagged values the devices that are included and I added both stereotypes on an action . Then I created a shapescript depending on which devices the user added in the properties and the icons are shown.  However, the thing I still want to achieve is to have a "random" image for
general devices which i will not have a standard icon ( that's actually related to my question I did in the last post and to qwerty on this one.)

You think if I do something like this I will have consistency problems? And how I understood your point, you mean I should better skip the second stereotype "devices" and add it as a property(tagged value) in the stereotype "migratable"?

Kind Regards,

Uml Process / Re: Stereotype and Icons
« on: October 28, 2020, 10:48:30 am »
Thanks!! It worked for me also. So in the end I was able to add conditionally the images  based on tagged values of  a stereotype and it worked.
However, you mentioned "add the images conditonally based on the stereotypes" how can that be achieved? I tried things like hasStereotype and so but I did not found something in the documentation.

Also, is there a way to add in the method "HasTag" something like  if (HasTag ("Example", "*")) where example is a char type attribute
and the start means "whatever text"?

Kind Regards,

Uml Process / Re: Stereotype and Icons
« on: October 28, 2020, 06:18:02 am »
It's sad that I cannot add two different stereotype with different images and show both of them because in the UML extensions mechanism
we should be able to do something like that..

Unfortunately your code did not worked. It didn't displayed any image, did it worked for you?

The way I achieved to add three images next to each other is :

decoration mail


     orientation= "NE";
     image ("tablet.png",100, 0, 0, 100);
     image ("smartphone.png", 0, 0, -100, 100);
          image("laptop.png", -100, 0, -300,100);

However if I have 3 different stereotypes with different images then there will be scenarios that a will apply the two of them, three of them and in the end to cover of the cases I have to create 8 different "stereotypes" to be able to do something like that..and it will not be user-friendly..

Any hack or something to do it differently?

Kind Regards,


Uml Process / Re: Stereotype and Icons
« on: October 28, 2020, 03:33:06 am »
No its atomic actions, activities cannot have control flow between them.
So even if the shapescripts are on different stereotypes only the one will be executed?

So to display two icons my only option is to have both in the same shape script, right? If thats the only case
then can you give me any hint for the coordinates of how to add in one shape script 3 icons with a proper size?
I am trying so long I am really confused with this coordinates..

Kind Regards,

Uml Process / Re: Stereotype and Icons
« on: October 28, 2020, 02:27:48 am »
Hello again,

I was thinking to open  a new topic but its related with this one so i thought to continue here.
So  I am still struggling with the icon thing..

What I want to achieve is to apply 2-3 stereotypes on a metaclass element and these stereotypes have also icons and I want all the icon to be displayed. As you can see in the screenshot:, in the action search routes there are applied two stereotypes and both icons are displayed. However, I achieved this by making cheats and not by creating an official stereotype.

So when I create officially the stereotypes with their icons and I apply both on them on the same element they override each other even if they are have not the same coordinates. For example in : you can see that in Action6 there are applied 2 stereotypes but only one icon is displayed, where in we have again the same stereotypes but the other icon is shown.

As I understood its just takes one( depends on which you choose first i think) and just shows these...And as you can see in the screenshots the two icons are not in the same spot.

Any suggestion of how to achieve that? It's the last thing I need to do with icons...

Kind Regards,

Pages: [1] 2 3