Book a Demo

Author Topic: Unwanted inherited shape script  (Read 3665 times)

Viking

  • EA User
  • **
  • Posts: 478
  • Karma: +2/-2
    • View Profile
Unwanted inherited shape script
« on: March 16, 2017, 04:35:37 am »
Hi together,

We implemented a stereotype "ProcessStep" with an own shape script. The stereotype generalizes the stereotypes BPMN2.0::Activity and Archimate2::Archimate_BusinessProcess. Both have the same MetaClass Activity.

The script would work fine. Unfortunately it "inherits" the shapescript. We thought "overwriting" prevents "inheritage". Did we do something wrong or missed something? How can we avoid the inheritance of the script?

We did not use "drawparentshape" in the script.

We did the same for Pool and Archimate2::Application. This works fine. The reason seems to be that they have different metaclasses.

Many thanks in advance, V.
« Last Edit: March 16, 2017, 09:29:42 pm by Viking »

Viking

  • EA User
  • **
  • Posts: 478
  • Karma: +2/-2
    • View Profile
Re: Unwanted inherited shape script
« Reply #1 on: March 16, 2017, 11:50:26 pm »
We put a stereotype between stereotype "ProcessStep" and the stereotypes BPMN2.0::Activity and Archimate2::Archimate_BusinessProcess. We declared _image as private to suppress inheritance.

The upper Shape Script is not executed any more.

The side-effect is, that the Properties Sheet does not open automatically any more and that the attributes are not ordered any more.

Can somebody tell me a better solution?