Book a Demo

Author Topic: Can automation handle MDG Stereotype items?  (Read 4579 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Can automation handle MDG Stereotype items?
« on: September 22, 2015, 06:18:38 pm »
Elsewhere I've mentioned we're looking at implementing "Aspect Oriented Shapescripts" (TM).  A such, we have a lot of code snippets that need to be incorporated into a large number of shapescripts.

Assuming we could construct a script that assembles the required shapescript for a given stereotype in the MDG, is the automation smart enough to perform the requisite encryptions for the _image and icon attributes of the item?

Have I explained the problem well enough?

TIA,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Can automation handle MDG Stereotype items?
« Reply #1 on: September 22, 2015, 08:03:30 pm »
I did not understand it. But that doesn't mean much  ;)

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Can automation handle MDG Stereotype items?
« Reply #2 on: September 23, 2015, 09:50:51 am »
Quote
I did not understand it. But that doesn't mean much  ;)

q.
Yes, it's not obvious what I'm asking.  I was on the bus going home when I crafted the question (and now I'm on the bus going to work) so I wasn't as forthcoming as I should have been.

When I'm constructing an MDG, as I edit the _image attribute of the stereotype item through the UI, EA will store the shapescript as a zipped Base64 encoded value.

My question is: If I set the value of the same _image attribute using automation will it also store the value I supply (the text of the shapescripts) as a zipped Base64 encoded value.  Similarly for the other encoded attributes.

Does that make it clearer?

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Can automation handle MDG Stereotype items?
« Reply #3 on: September 23, 2015, 03:33:08 pm »
Paolo,

I haven't tried it myself, but it seems simple enough to go either way.

If indeed the shapescript is already saved in the database in zipped/base64 encoded format then I'm guessing you'll have to zip/base64 encode the shapescript yourself.

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Can automation handle MDG Stereotype items?
« Reply #4 on: September 23, 2015, 04:30:00 pm »
Quote
Paolo,

I haven't tried it myself, but it seems simple enough to go either way.

If indeed the shapescript is already saved in the database in zipped/base64 encoded format then I'm guessing you'll have to zip/base64 encode the shapescript yourself.

Geert
That's what I was hoping to avoid.  :-/

I didn't want to add all that additional infrastructure.  I might formally ask Sparx.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!