Book a Demo

Author Topic: Change default diagram for BPMN/ArchiMate element  (Read 6811 times)

Filip Hendrickx

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Change default diagram for BPMN/ArchiMate element
« on: March 04, 2014, 08:15:40 pm »
Hi all.

I have my own toolbox, which is a subset of ArchiMate2 and BPMN2.0, created via toolboxpages. I also have added my own diagram type that automatically loads this toolbox.

However, when for example an ArchiMate business process from my own toolbox is made composite, the diagram that is automatically created, is an ArchiMate diagram. I'd like this to be my own diagram type.

I'm able to get this behavior with standard UML elements, as explained in the link below, but I can't get it working with ArchiMate elements.

http://www.sparxsystems.com/enterprise_architect_user_guide/10/extending_uml_models/defining_child_diagram_types.html

Any experience with this? Or perhaps not possible (it's not the first time ArchiMate and BPMN are giving me a hard time :-))?

  • I'm using EA 10
  • The toolboxpage refers to Archimate2::ArchiMate_BusinessProcess
  • The profile metaclass I use is of type Activity
  • I'm not sure what name to use for the stereotype extending this metaclass.

Best regards,

Filip.

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: Change default diagram for BPMN/ArchiMate elem
« Reply #1 on: March 05, 2014, 06:58:55 am »
I think what you need to do is define your own stereotype and reference that in your toolbox rather than the archimate or BPMN elements. In the metaclass that your stereotype extends put in the name of your custom diagram in the _DefaultDiagramType attribute in the meta class. Make sure you include its namespace i.e. the package name where the diagram is defined.
Happy to help
:)

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Change default diagram for BPMN/ArchiMate elem
« Reply #2 on: March 05, 2014, 08:48:45 am »
Further to what Sunshine said, make sure your stereotype has an «extends» to «metaclass» Activity and a generalization to an abstract «stereotype» Archimate2::ArchiMate_BusinessProcess (yes, the full name). Your stereotype will then receive all the properties, tagged values, shape scripts etc of the Archimate stereotype, but you will override the _defaultDiagramType property. You may need EA 11 for this to work fully - there was a fix that went into this area.
The Sparx Team
[email protected]

Sorno

  • EA User
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Re: Change default diagram for BPMN/ArchiMate elem
« Reply #3 on: April 03, 2014, 01:14:19 am »
The fix in EA 11, was that to fix that the attribute wasn't inherit before?

I saw that this was reported as a bug in 2011, and in EA 10.0.1009 it seems that _defaultDiagramType only work on stereotypes that directly extends the metaclass. Is there any way around this (except to upgrade to EA 11)?

Cheers,
Jonas