Book a Demo

Author Topic: Extending Archimate Element using UML Profile  (Read 9053 times)

gpatenaude

  • EA Novice
  • *
  • Posts: 9
  • Karma: +1/-0
    • View Profile
    • LinkedIn profile
Extending Archimate Element using UML Profile
« on: March 04, 2016, 02:56:08 am »
Is it possible to extend a certain type of element (Archimate 2.0 Device from the technology layer in my case).

I need the extented element to respect the following constraints:

1.  Has default tag values (CPU, memory, etc.) when I drag and drop the element in a diagram
2.  Has the same look and feel than a Archimate 2.0 device when I drop it in a Archimate 2.0 Technology layer diagram.

Thanks in advance!
If anyone tries to tell you that your estimate is bogus because the task is so simple, ask them to write down the procedure for tying their shoes.

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Extending Archimate Element using UML Profile
« Reply #1 on: March 04, 2016, 07:04:16 am »
w00t I beat Paolo

Yes, you use the Archimate type as an abstract meta-type and have an extend from it, and the base class (which from memory is class).  If you need more help sing out and i'll try and work out if I can upload a picture to anywhere from here.
« Last Edit: March 04, 2016, 07:05:57 am by Glassboy »

gpatenaude

  • EA Novice
  • *
  • Posts: 9
  • Karma: +1/-0
    • View Profile
    • LinkedIn profile
Re: Extending Archimate Element using UML Profile
« Reply #2 on: March 04, 2016, 07:33:34 am »
Thanks for your reply!

The problem is there is no abstract metatype for Archimate elements.  From my understanding, it is a stereotype "ArchiMate_Device" on a class that makes the rendering.  I can't find a way to extend the stereotype.

Here's my profile diagram:
https://www.dropbox.com/s/e1gpgkhy1eshrib/2016-03-03_15-27-42.png?dl=0
If anyone tries to tell you that your estimate is bogus because the task is so simple, ask them to write down the procedure for tying their shoes.

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Extending Archimate Element using UML Profile
« Reply #3 on: March 04, 2016, 07:38:24 am »
You're using the quick linker?  Don't, just grab the extend from the toolbox.

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Extending Archimate Element using UML Profile
« Reply #4 on: March 04, 2016, 07:40:52 am »
Oh and make the abstract metaclass, a metaclass not a stereotype.

gpatenaude

  • EA Novice
  • *
  • Posts: 9
  • Karma: +1/-0
    • View Profile
    • LinkedIn profile
Re: Extending Archimate Element using UML Profile
« Reply #5 on: March 04, 2016, 07:54:37 am »
I'm missing something  :(  I can't find any Metaclass element for "Archimate_Device".

Another screenshot:
https://www.dropbox.com/s/1idah1kgkl2sb4a/2016-03-03_15-52-29.png?dl=0
If anyone tries to tell you that your estimate is bogus because the task is so simple, ask them to write down the procedure for tying their shoes.

gpatenaude

  • EA Novice
  • *
  • Posts: 9
  • Karma: +1/-0
    • View Profile
    • LinkedIn profile
Re: Extending Archimate Element using UML Profile
« Reply #6 on: March 04, 2016, 08:02:20 am »
I was thinking... Is it possible to export the Shape Script from the original "Archimate_Device" stereotype and reimport it for my  derived stereotype?

Thanks in advance!

If anyone tries to tell you that your estimate is bogus because the task is so simple, ask them to write down the procedure for tying their shoes.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Extending Archimate Element using UML Profile
« Reply #7 on: March 04, 2016, 08:10:54 am »
The shape script is stored in the MDG in a base64 encoded and packed format. You need to decode the base64 which results in a zip data file. This can be unpacked using standard zip tools. The contents might be copyrighted by Sparx. I guess as long as you use it for your company internally it should not really be an issue. Asking Sparx wouldn't be the worst to do, I guess.

q.

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Extending Archimate Element using UML Profile
« Reply #8 on: March 04, 2016, 08:12:24 am »
I've never done it the way you are.  I just created it manually.  Drop a metaclass on and give it the appropriate name (inc namespace).

yes you can copy the shapescript.  Create some shapescript on an element.  Open the MDG file.  Cut and paste the shapescript attribute over top of the shapescript attribute you created.  Open and verify you did it properly.

But I wouldn't, I'd extend the abstract metaclass.

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Extending Archimate Element using UML Profile
« Reply #9 on: March 04, 2016, 08:13:40 am »
The shape script is stored in the MDG in a base64 encoded and packed format. You need to decode the base64 which results in a zip data file. This can be unpacked using standard zip tools. The contents might be copyrighted by Sparx. I guess as long as you use it for your company internally it should not really be an issue. Asking Sparx wouldn't be the worst to do, I guess.

That's a torturous method when you can simply cut and paste the attribute.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Extending Archimate Element using UML Profile
« Reply #10 on: March 04, 2016, 10:32:02 am »
w00t I beat Paolo

[SNIP]
Not to rain on your parade, but you ARE a fair few hours ahead of me...   ;D  According to the site, your first post was at 4:04 am - when I was snug in bed.

From the west side of the West Island of New Zealand...  ;)

Paolo
« Last Edit: March 04, 2016, 10:35:27 am by Paolo F Cantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Extending Archimate Element using UML Profile
« Reply #11 on: March 04, 2016, 12:20:25 pm »
From the west side of the West Island of New Zealand...  ;)

I'm aware of WAFL country :-)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Extending Archimate Element using UML Profile
« Reply #12 on: March 04, 2016, 03:31:25 pm »