Book a Demo

Author Topic: Palette & Quicklink Create Different Object Types  (Read 6914 times)

wikitect

  • EA User
  • **
  • Posts: 117
  • Karma: +2/-0
    • View Profile
    • TRAK Community
Palette & Quicklink Create Different Object Types
« on: November 12, 2009, 08:56:26 pm »
Creating a link using Quicklink isn’t the same as creating one using a toolbox palette object because Enterprise Architect provides access to different stereotypes (classes) in the creation of the relationship. They might appear to be the same type (stereotype/class) but they aren’t when looked at in detail.

Take the TRAK MDG Technology for EA.

TRAK defines a relationship connector - a Resource Interaction - between 2 Resources (Capability Configuration, Physical, Software, Organisation, Job, Role).

Using the Custom Toolbox Palette to Create a Relationship

In the toolbox palette for the SV-01 - Solution Resource Interaction Description - the Resource Interaction connector is defined as:-

      
Code: [Select]
TRAK::ResourceInteraction(UML::InformationFlow)
this causes it to reference the ResourceInteraction stereotype in the TRAK profile. In other words it creates a TRAK Resource Interaction class that has the attributes defined for the class and treats it like a UML InformationFlow in terms of presentation and behaviour in EA. Looking at the attributes (tagged values) you can see that it has attributes like InteractionType which can be selected from a drop down list (Unknown, Energy, Data, Materiel).



This is what was intended.

Using Quicklink to Make a Relationship

EA provides the Quicklink mechanism to make links by dragging from the arrow on the selected stereotype and onto the target stereotype. The relationships offered are defined within the MDG technology and can depend on diagram type, source and target stereotypes.

In the the TRAK MDG Technology for EA the corresponding definition is:-

      
Code: [Select]
Class, CapabilityConfiguration, Class, Job, TRAK::SV02;, InformationFlow,ResourceInteraction, to, RI from --> to, TRUE, TRUE, TRUE, 0

      Class, Job, Class, CapabilityConfiguration, TRAK::SV02;, InformationFlow, ResourceInteraction, to, RI from --> to, TRUE, TRUE, TRUE, 0

this covers the creation of a relationship between a single pair of stereotypes (Capability Configuration and Job) on a SV02 diagram depending on which stereotype is selected as the source.

In the Quicklink definition only a limited set of object types can be used as the types to be created. It can't create an object type using a definition within the UML profile within the MDG Technology (unlike the toolbox object definition).  In this case Quicklink creates a relationship of type InformationFlow and then stereotypes this as ‘ResourceInteraction’. This isn’t, however, the same type of object as a TRAK ResourceInteraction which is presented as an InformationFlow. The relationship created using Quicklink has only the baseline set of attributes with no tagged values.

This is caused by the EA toolbox palette definition and quicklinker definitions having access to different sets of source object types. This is something that needs to be corrected as it is misleading in terms of presentation / semantics. It also means that the where a custom relationship is defined with attributes (tagged values) quicklink cannot be used to create the relationship negating one of the nice parts of the UI.

This is serious error when trying to apply an architecture framework since it means that the resulting model will potentially not conform if Quicklink is used.
======
Favourite epitaph: 'Under this sod lies another'

TRAK Framework https://sf.net/p/trak
MDG for TRAK https://sf.net/p/mdgfortrak

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Palette & Quicklink Create Different Objec
« Reply #1 on: November 12, 2009, 10:28:35 pm »
I agree... I suspected something like this and so didn't get into MDG technologies in a big way...

But now I have no option.

My usual:
Consistency, Consistency, Consistency! TM

applies...

Paolo
« Last Edit: November 12, 2009, 10:29:02 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Palette & Quicklink Create Different Object Ty
« Reply #2 on: November 13, 2009, 08:24:48 am »
Quote
Creating a link using Quicklink isn’t the same as creating one using a toolbox
er... yes it is.

I don't have enough information to know what the problem is in this case, but if you can send a support request, preferably attaching your technology, we can try to figure it out for you.
The Sparx Team
[email protected]

wikitect

  • EA User
  • **
  • Posts: 117
  • Karma: +2/-0
    • View Profile
    • TRAK Community
Re: Palette & Quicklink Create Different Object Ty
« Reply #3 on: November 13, 2009, 08:30:20 am »
Have submitted it as a bug. And, yes, the MDG technology was attached with steps to repeat.

Tx
======
Favourite epitaph: 'Under this sod lies another'

TRAK Framework https://sf.net/p/trak
MDG for TRAK https://sf.net/p/mdgfortrak

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Palette & Quicklink Create Different Object Ty
« Reply #4 on: November 13, 2009, 09:28:37 am »
Received thanks, and good work!

I was able to reproduce the problem and I notice that you have put the quicklink definitions in a different UML profile to your stereotype definitions. This causes the quicklinker to look in the wrong place for the stereotype definitions. I cut and paste the quicklink definitions into the same profile as the stereotypes and it worked as intended. This is probably something we should fix, but until we do there's your work-around.

HTH
The Sparx Team
[email protected]

wikitect

  • EA User
  • **
  • Posts: 117
  • Karma: +2/-0
    • View Profile
    • TRAK Community
Re: Palette & Quicklink Create Different Object Ty
« Reply #5 on: November 13, 2009, 10:00:53 am »
Sorry to be thick but can you spell this out for me?

I've followed the help instructions to the T and EA doesn't offer the ability to combine the UML and stereotype profiles - each is generated separately by EA and only merged in the generation of the MDG technology by reference from the .MTS file.

If the 2 are to be embedded within the 1 profile in order to work then either 1) EA should do this at the build of the MDG or 2) there should be a mechanism to reference a separate profile as it the case with diagrams and toolboxes.

It seems I was vindicated in submitting it as a bug ;-)

In the mean time in order to merge do I just manually cut the Quiclink into the UML profile? Some more guidance would be appreciated and some words of advice/caution on the help pages wrt Quicklink.

This is going to be a real pain in terms of workflow - it's built many times a day in order to test fixes and additions out.  :(

... and given the right sort of blessing you might see this loom large if you know what I mean.  ;)
======
Favourite epitaph: 'Under this sod lies another'

TRAK Framework https://sf.net/p/trak
MDG for TRAK https://sf.net/p/mdgfortrak

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Palette & Quicklink Create Different Objec
« Reply #6 on: November 13, 2009, 10:22:15 am »
Quote
In the mean time in order to merge do I just manually cut the Quiclink into the UML profile?
Not necessary. You presumably have one profile package or diagram with a document artifact named "QuickLink", and another profile package or diagram with all of your stereotype classes. Simply move your QuickLink document artifact from the first profile to the second and re-save the second profile. Then re-run the technology wizard leaving the first profile out of the build.
« Last Edit: November 13, 2009, 10:24:12 am by KP »
The Sparx Team
[email protected]

wikitect

  • EA User
  • **
  • Posts: 117
  • Karma: +2/-0
    • View Profile
    • TRAK Community
Re: Palette & Quicklink Create Different Object Ty
« Reply #7 on: November 13, 2009, 08:09:57 pm »
Thanks.

Although this will work it's messy because it means I have to mix diagrams / elements concerned with defining the general UML profile with those that define the EA-specific profiles for the MDG Technology.
======
Favourite epitaph: 'Under this sod lies another'

TRAK Framework https://sf.net/p/trak
MDG for TRAK https://sf.net/p/mdgfortrak