Book a Demo

Author Topic: Default Toolbox depending by diagram-type (RedefinedToolbox)  (Read 6925 times)

MRrobot

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Hi there,

I made my own extension of the UML::Requirements toolbox within the Technology-Profile named "AAA" and I want to open this toolbox (Name is "EXT_Req") automatically every time a diagram of "Extended::Requirements" is active.
How can i select this toolbox "AAA::EXT_Req" for Requirement diagrams automatically?

  • EA User Guide p.118 tells me to redefine my toolbox as default: chosen toolbox-profile > Properties > General > Notes (enter: "RedefinedToolbox=UML::Class;Alias=Class;Notes=Structural elements for Class diagrams;" 
  • I replaced the term "UML::Class" by "Extended::Requirements" because this toolbox profile belongs to Requirement diagrams
  • EA UserGuide p.118 tells the same but it doesn't work
  • My Technology is set as Active
  • as www.sparxsystems.com/enterprise_architect_user_guide/13.5/modeling_tools/overriding_default_toolboxes.html tells the same plus Special diagram types that can be overridden - Extended::Requirements can be overridden

So how can i choose my own toolbox "AAA::EXT_Req" instead of "UML::Requirements" for "Extended::Reqirements"-diagrams?

Regards MRrobot

[/list]

PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1001
  • Karma: +59/-18
    • View Profile
Re: Default Toolbox depending by diagram-type (RedefinedToolbox)
« Reply #1 on: July 18, 2018, 08:18:00 pm »
Hi,
I did never try this, so I can not give you hints about that.
However what works, is creating you own diagram profile as shown here:
http://www.sparxsystems.com/enterprise_architect_user_guide/13.5/modeling_tools/custom_diagram_types.html
Mayby this is an option for you.
Best regards,

Peter Heintz

MRrobot

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Default Toolbox depending by diagram-type (RedefinedToolbox)
« Reply #2 on: July 23, 2018, 08:42:01 pm »
Thank you Peter, a coustom diagram works - this is the 2nd best solution to the default solution.

I also want to change the the default toolbox of "BPMN2.0::Business Process" (extension  of UML::Activity right?) without a custom diagram - same result  :'(
Why is this such a mystery? :o

Regards Michael

MRrobot

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Default Toolbox depending by diagram-type (RedefinedToolbox)
« Reply #3 on: August 21, 2018, 01:25:55 am »
Hi,
I did never try this, so I can not give you hints about that.
However what works, is creating you own diagram profile as shown here:
http://www.sparxsystems.com/enterprise_architect_user_guide/13.5/modeling_tools/custom_diagram_types.html
Mayby this is an option for you.

Thank you Peter, I got another question about custom diagrams:
How can you determine the parent-diagram-type of an built-in diagram?

The parent diagramm for UML Class diagrams is Logical (source:  http://www.sparxsystems.com/enterprise_architect_user_guide/13.5/modeling_tools/defining_child_diagram_types.html)
I need all parent-diagrams for following diagrams:
  • ArchiMate 3 - Motivation
  • ArchiMate - ApplicationLayer
  • ArchiMate - BusinessLayer
  • BPMN2.0 - BusinessProcess
  • Common - Requirements
  • Win 32 User Interface - Diagram

Do their parent diagrams belong to those in my source?
How can I extract this information about partens from Sparx EA?

Regards,
MRrobot

[/list]

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Default Toolbox depending by diagram-type (RedefinedToolbox)
« Reply #4 on: August 21, 2018, 01:38:58 am »
Create each of them in an empty EAP and name them accordingly. Then run SELECT * FROM t_diagram in the SQL Scratch Pad (ctrl-f). You'll find it in the column diagram_type.

q.

MRrobot

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Default Toolbox depending by diagram-type (RedefinedToolbox)
« Reply #5 on: August 21, 2018, 09:18:38 pm »
Create each of them in an empty EAP and name them accordingly. Then run SELECT * FROM t_diagram in the SQL Scratch Pad (ctrl-f). You'll find it in the column diagram_type.

q.

Perfect! Thank you Mister Q!  :)
Can you also tell me how to extract all base-UML-types for built-in Stereotypes?

For example when I use my own MDG Technology with custom Toolbox, I am re-using built-in-types. So I have to know the inheritance hierarchy for all my, for example:
  • BPMN2.0::Activity (UML::Activity) --> so UML::Activity is the base-type - this sounds logical
  • BPMN2.0::Pool (UML::ActivityPartition) --> UML::ActivityPartition - but WHY??
  • TECHNAME::OWN_STEREOTYPE (UML::Class) --> UML::Class is the basetype of my own Stereotype and customization is inside the "<<profile>> TECHNAME" package

How can I generally extract the base-UML-types for any Element? Is there a SQL solution?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Default Toolbox depending by diagram-type (RedefinedToolbox)
« Reply #6 on: August 21, 2018, 10:36:56 pm »
I guess there's no such solution. Somewhere buried in the help you will find a list. But it also (if you happen to find it) does not seem to be complete since every now and then someone asks about a rarely used element.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Default Toolbox depending by diagram-type (RedefinedToolbox)
« Reply #7 on: August 22, 2018, 08:41:29 am »
BPMN2.0::Activity (UML::Activity) --> so UML::Activity is the base-type - this sounds logical
Actually, action would be the closest mapping to UML. A Process should be mapped to Activity.

BPMN2.0::Pool (UML::ActivityPartition) --> UML::ActivityPartition - but WHY??
Probably because it had the closest appearance.

Those mappings come from when EA was less flexible with profile customization than it is now. But they aren't as important when implementing a profile to represent a completely different metamodel.

How can I generally extract the base-UML-types for any Element? Is there a SQL solution?

The only trick is that the EA search window will helpfully show you the metatype that comes from the stereotype. If you want the base type you need to go around it.
Code: [Select]
select Object_Type as Real_Type from t_object where <condition>