Book a Demo

Author Topic: Shapescript - bug or feature  (Read 3589 times)

matthew.james

  • EA User
  • **
  • Posts: 155
  • Karma: +8/-3
  • Am I supposed to say something here ... ?
    • View Profile
Shapescript - bug or feature
« on: July 27, 2018, 10:02:06 am »
It was my understanding that shapescripts are associated with stereotypes, but I am seeing some 'interesting' behaviour that suggest this is not always the case.  Specifically that an element can have a shapescript associated with it even if it has the 'wrong' stereotype. Not sure if this is a bug or an intentional feature.

Specifics - using the Archimate BusinessService element which is based on the underlying Activity type:
- Add a new BusinessService element then delete the stereotype -> element changes to basic Activity in type and appearance
- Add a new BusinessService element then edit the stereotype to a non-existant stereotype -> element changes to basic Activity in type and appearance, but with stereotype as edited
- Add a new basic Activity element
- Apply the Archimate BusinessService stereotype to all three elements, ie Ctl-Drag from the toolbox to each element

Result is that the two elements with no stereotype (1st and 3rd from above) now have the BusinessService stereotype and the correct Archimate shapescript.
The other element also gets the correct Archimate BusinessService shapescript *but* retains the edited stereotype, i.e. it does not have the BusinessService stereotype but it does have the BusinessService shapescript.  This is recorded and preserved in the model.

How and why is this doing this ... ? And can I rely on this behaviour or is it not correct ?
« Last Edit: July 29, 2018, 05:11:49 pm by matthew.james »

matthew.james

  • EA User
  • **
  • Posts: 155
  • Karma: +8/-3
  • Am I supposed to say something here ... ?
    • View Profile
Re: Shapescript - bug or feature
« Reply #1 on: July 27, 2018, 04:22:18 pm »
Slight update from the original post ...

The element with the wrong stereotype has 'almost' the BusinessService shapescript (or at least appearance).  It has the same shape and colour, including rectangle / non-rectangle notation - but it is missing the decoration (upper right) in the rectangle notation view. In both rectangle and non-rectangle notation it is definitely the archmate shapescript in appearance not the 'standard' Activity shape.

In addition a new stereotype has been created in UML Types.  This stereotype has no shapescript associated with it

Picture with non-rectangle notation
https://www.dropbox.com/s/ihsjtroxes55arb/image003.png

Picture with rectangle notation:
https://www.dropbox.com/s/d3bun0hfguhv0wu/image002.png
« Last Edit: July 29, 2018, 05:12:58 pm by matthew.james »