Author Topic: Uml profile on a region of a concurrent state  (Read 722 times)

Philipp91

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Uml profile on a region of a concurrent state
« on: October 01, 2020, 01:02:30 am »
Hello,

In my project I want to apply a stereotype on a region of a concurrent state. However, went a add a new metaclass in a
profile diagram, there does not exist any metaclass with the name "region". I had a look at UML specs and it looked that it is
a stand alone metaclass so theoretically it should be extensible through the profile mechanism. Is there any way I could apply a
stereotype on the region or I understood UML spec wrong and we don't have the right to do it?
Any help would be appreciated.

Kind Regards,
Philipp

qwerty

  • EA Guru
  • *****
  • Posts: 11472
  • Karma: +305/-263
  • I'm no guru at all
    • View Profile
Re: Uml profile on a region of a concurrent state
« Reply #1 on: October 01, 2020, 01:29:12 am »
Quote
A Region is a top-level part of a StateMachine
says the UML spec. So I'd guess you need to specify a StateMachine as metaclass. Just guessing...

q.

Philipp91

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: Uml profile on a region of a concurrent state
« Reply #2 on: October 01, 2020, 03:26:55 am »
Hello,

Thanks for the quick reply. Can i ask the source you used for UML spec?
I defined a StateMachine as a metaclass to my stereotype , however it did not solved my problem.
The thing is that the a create a state and by right clicking on the state --> advances --> define concurrent substates is the way i create the regions.  However, i am able just to apply a stereotype on the state and not the substate itself. (I tried to upload a screenshot but i could not fine this options...)

On other tools that have experimented there existed the possibility to create a stereotype on the metaclass region.
Am I missing something??


Kind Regards,
Philipp

qwerty

  • EA Guru
  • *****
  • Posts: 11472
  • Karma: +305/-263
  • I'm no guru at all
    • View Profile
Re: Uml profile on a region of a concurrent state
« Reply #3 on: October 01, 2020, 03:51:52 am »
Well, it's the (almost) recent 2.5 spec from OMG. P. 350 chap. 14.5.8.1

q.

Philipp91

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: Uml profile on a region of a concurrent state
« Reply #4 on: October 01, 2020, 11:24:00 pm »
Hello,

Thank you.
I tried by extending a stereotype with metaclass statemachine but did not solved my problem.
I noticed that except of not being able to add a stereotype, I also cant "select" the region of a concurrent state to modify it generally.
Any help? Am I missing or not understanding something?

Kind Regards,
Philipp

qwerty

  • EA Guru
  • *****
  • Posts: 11472
  • Karma: +305/-263
  • I'm no guru at all
    • View Profile
Re: Uml profile on a region of a concurrent state
« Reply #5 on: October 01, 2020, 11:52:49 pm »
Statemachines are not something I deal with every day. Can you tell me how you create a "normal" region in EA?

q.

Philipp91

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: Uml profile on a region of a concurrent state
« Reply #6 on: October 02, 2020, 01:24:24 am »
Hello,

Create a state or a state machine . Then right click on the state, select advanced --> Define concurrent Substates --> Add a name and save it.
It really would help if I find a way to extend that metaclass somehow...:)
Kind Regards
Philipp

qwerty

  • EA Guru
  • *****
  • Posts: 11472
  • Karma: +305/-263
  • I'm no guru at all
    • View Profile
Re: Uml profile on a region of a concurrent state
« Reply #7 on: October 02, 2020, 01:41:07 am »
Ah, I see. Those sub-states can not be stereotyped. They are "simple properties" of a state. So the only way is to apply a naming scheme for these sub-states. At least that's what comes to my mind at first hand.

q.

Philipp91

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: Uml profile on a region of a concurrent state
« Reply #8 on: October 02, 2020, 02:57:58 am »
I also did this cheap solution. I want to apply the stereotype "MultyDevice" on the region but for now i just added it as a name to the region. However, officially UML would allow us to extend the metaclass region, right? 
So in other words, i cannot extend the region officially in enterprise architect just theoretically?

Kind Regards,
Philipp

qwerty

  • EA Guru
  • *****
  • Posts: 11472
  • Karma: +305/-263
  • I'm no guru at all
    • View Profile
Re: Uml profile on a region of a concurrent state
« Reply #9 on: October 02, 2020, 03:08:44 am »
I have not read deeply enough here. But Region is an Element per UML and I think therefore it should be possible to apply a stereotype. However, EA has a lazy implementation and regions are just properties of the state. As said, I'm not an expert in that area so you might send an inquiry to Sparx if none of their staff responds here.

q.

Philipp91

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: Uml profile on a region of a concurrent state
« Reply #10 on: October 02, 2020, 05:10:53 am »
Thank you again and again. Yea it is quite sad that the regions are "useless" in EA. I really was satisfied with every other extension I
wanted to apply except of this one.
How can a sent an inquiry to Sparx? :)

Kind Regards,
Philipp

qwerty

  • EA Guru
  • *****
  • Posts: 11472
  • Karma: +305/-263
  • I'm no guru at all
    • View Profile
Re: Uml profile on a region of a concurrent state
« Reply #11 on: October 02, 2020, 05:58:47 pm »
You can either mail to support@sparxsystems.com or send a feature request via the link in the Support section below. Good luck with either option...

q.

Philipp91

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: Uml profile on a region of a concurrent state
« Reply #12 on: October 03, 2020, 11:56:23 pm »
Thanks!