Book a Demo

Author Topic: Setting the default diagram of a composite element  (Read 4428 times)

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
Setting the default diagram of a composite element
« on: November 11, 2014, 08:27:45 am »
HI all

I am trying to create a stereotype that:

* Is composite by default, and
* Opens the BPMN Business Process Diagram by default.

I've added the _defaultDiagramType and _makeComposite attributes to the metaclass from which my stereotype is extended.

However, I cannot figure out what the value of _defaultDiagramType should be set to.

There appears to be no built in BPMN diagram type, so how do I open a BMPN Business Process Diagram with the appropriate toolbox by default?

Many thanks

Jays  :)

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Setting the default diagram of a composite ele
« Reply #1 on: November 11, 2014, 08:41:16 am »
You need: BPMN2.0::Business Process

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
Re: Setting the default diagram of a composite ele
« Reply #2 on: November 11, 2014, 09:13:11 am »
Doesn't seem to be working, maybe I've got something else wrong too?

Metatype (Class)
======
_defaultDiagramType:string BPMN2.0::Business Process
_makeComposite:boolean = true

Stereotype
=======
_metatype:string=Business Process


Whenever I create a new Business Process and double click on it, it opens up an Analysis Diagram.

Jays  :)

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Setting the default diagram of a composite ele
« Reply #3 on: November 12, 2014, 08:49:49 am »
Do you have the BPMN technology enabled?

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
Re: Setting the default diagram of a composite ele
« Reply #4 on: November 12, 2014, 09:01:03 am »
Hey Simon

Yup, but that wasn't the problem.
I finally gave up in exasperation this morning and:

* Deleted the stereotype and re-created it, and
* Deleted the profile file rather than simply over writing it.

And that did it.
I've found from time to time Sparx seems to hold on to old config items.
Particularly in the world of scripting.

So, by forcing it to start from scratch, I got success.

Thanks for you help. Without you telling me I needed BPMN2.0:: Business Process, I would have been at it till this time next week!

Jays  :)