Author Topic: Extend SysML with MDG Technology in EA  (Read 5328 times)

Plonka

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Extend SysML with MDG Technology in EA
« on: September 26, 2024, 01:28:44 am »
Hello all,

I simply want to extend the SysML 1.5 TestCase.

Lets say I want to have in the Properties a new Attribut that let me choose if the TestCase is executed or not.

My approach is the following:
1. Create a new projekt: Start Page->Create from Pattern-> MDG Technology Builder
2. In the <<profile>> Package I added the SysML 1.5::testCase
3. I added a stereotype (extendedTestCase) and added the attribut "Status"
4. I created an enumeration (EnumStatus) and added the attributs "executed" and "not executed".
5. The type of the attribut "Status" selected as EnumStatus
6. I connected the "extendedTestCase" and the "SysML 1.5::testCase" with an Extension connector

Later I exported the <<profile>> Package to an xml file which I later choose when generating the MDG-Technologie.

I kind of have the feeling that I can not simply extend a SysML Stereotype. I can integrate my Technology into my project but I can not find the "extendetTestCase".

Are there any good instructions on how to extend sysml elements in EA?
A Youtube video or a webpage oder something I can find in this Forum. I was not able to find anything reasonable.

Hope somebody can help.

Kind regards
J. Plonka

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Extend SysML with MDG Technology in EA
« Reply #1 on: September 26, 2024, 03:12:58 am »
6. I connected the "extendedTestCase" and the "SysML 1.5::testCase" with an Extension connector
That should be a Generalization instead of Extension.

Geert

Roche Pso

  • EA User
  • **
  • Posts: 34
  • Karma: +0/-1
    • View Profile
Re: Extend SysML with MDG Technology in EA
« Reply #2 on: September 27, 2024, 12:34:57 am »
Do you still need to also extend the UML base type, or does specialising a SYSML type work by itself in the latest versions?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Extend SysML with MDG Technology in EA
« Reply #3 on: September 27, 2024, 02:08:26 am »
Do you still need to also extend the UML base type, or does specialising a SYSML type work by itself in the latest versions?
I still do it because of the profile helper for toolboxes.

Geert

Plonka

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Extend SysML with MDG Technology in EA
« Reply #4 on: October 22, 2024, 08:42:39 pm »
When I extend the «metaclass» class and generalize a «block» in my Profile, the new Element in my new Element is from type Class and not Block.
How can I change this?
My new Block should behave and look exactly like a SysML Block but I want to extend with some attributes.
Any ideas?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Extend SysML with MDG Technology in EA
« Reply #5 on: October 22, 2024, 09:42:46 pm »
When I extend the «metaclass» class and generalize a «block» in my Profile, the new Element in my new Element is from type Class and not Block.
How can I change this?
My new Block should behave and look exactly like a SysML Block but I want to extend with some attributes.
Any ideas?
did you fill in the metatype field?

Geert

Plonka

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Extend SysML with MDG Technology in EA
« Reply #6 on: October 22, 2024, 10:28:40 pm »
«metaclass»
Name: Class
Type: Class
Stereotype: UML Standard Profile::Metaclass

«Block»
Name: Block 1
Type: Block
Stereotype: SysML 1.5::block

My new Block is a Stereotype element of the Toolbox "Profile"

Name: New Block
Type: Class
Stereotype: Stereotype

New Block --- Generalization ---> «Block»
New Block --- Extension ---> «metaclass»

I dont know where to "fill" the metatype field because there is no field in my New Block.

(I wish this forum would allow to add screenshots  ;D)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Extend SysML with MDG Technology in EA
« Reply #7 on: October 22, 2024, 10:56:53 pm »
Please use the Profile helper to fill in the details. (right click and choose "Edit with profile helper")

Metatype is one of the fields you can fill in for a steretoype.

You can post images here if you first publish them on some kind of public image hosting site such as imgur.com and then put the link between img tags.

Geert


Plonka

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Extend SysML with MDG Technology in EA
« Reply #8 on: October 22, 2024, 11:29:36 pm »
That looks better, thank you.
Next step would be to change the appearance with Shape Script.
I want the new Block to look like a SysML Block but slightly different when some attributes have a specific value.
I managed to this in general but there is no source code for the SysML Block shape script or the UML Class element.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Extend SysML with MDG Technology in EA
« Reply #9 on: October 23, 2024, 01:23:25 am »
Shapescripts that deal with attributes are very difficult to get good.
There's only so much you can do with the tools provided by shapescript.

I usually tell people I can't do anything more then adding a bit of decoration for the class shape.

Geert