Book a Demo

Author Topic: Connector with automated name  (Read 12047 times)

ggandhi

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Connector with automated name
« on: January 09, 2014, 08:13:22 pm »
Please can you tell me how to supply my customers with a toolbox connector that behaves like UML::Dependency, but automatically displays the word "Deploy". The purpose of the connector is to indicate software deployment.

I have defined an MDG «diagram profile» to include new diagram type 'Software Deployment View', which is an extension of «metaclass» Diagram_Package. In my «toolbox profile», I want to add a connector that behaves like UML::Dependency, but displays stereotype "Deploy" or name "Deploy", without the user having to
1. enter the name "Deploy"
2. respond to prompt for Dependency, Transition, Information Flow

I have defined an MDG «profile» to include 5 experimental connector stereotypes based on the following Connector Extensions.

1. Deploy_Deployment based on extension Deployment
2. Deploy_ObjectFlow based on extension ObjectFlow
3. Deploy_PackageImport based on extension PackageImport
4. Deploy_ProfileApplication based on extension ProfileApplication
5. Deploy_Transition based on extension Transition

The above connectors, when used in any diagram, display the stereotype as follows:
« <MDG Technology Name>::<My stereotype name> »
I do not want <MDG Technology Name> to be displayed.

UML::Deployment and the above 5 new connector stereotypes are included in my «toolbox profile», so that I can experiment and find the ideal connector behaviour to be used when creating Deployments in 'Software Deployment View' diagrams.

None of these new connectors (including UML::Deployment) give me the exact behaviour I want.  On a new diagram, if I click and drag any of the 5 new above-described connector sterotypes Sparx prompts for a choice of 3, as follows:
> Dependency
> Transition
> Information Flow

If I escape from this dialogue, Sparx produces a message "The requested connection is not UML Compliant".

Because I do not get the dialogue with standard connector UML::Dependency, I could use the standard connector UML::Dependency.

I want a connector that behaves like UML::Dependency (no prompt), but displays stereotype "Deploy" or name "Deploy", without the user having to enter the name "Deploy".   8-)

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Connector with automated name
« Reply #1 on: January 10, 2014, 09:17:22 am »
I see you have a diagram profile and a toolbox profile, but I can't tell if you have a UML profile in you technology. In your UML profile, define a stereotype named "Deploy" that extends a metaclass named "Dependency". Then in your toolbox profile your toolbox page stereotype will need an attribute named "MyUMLProfile::Deploy(UML::Dependency)" - where "MyUMLProfile" is the name of the UML Profile (not the MDG Technology!) with the Deploy stereotype.

HTH


PS Or you could just switch off Tools > Options > Diagram > Strict UML Syntax and use UML::Deployment without the syntax error.

PPS You might like to tick the Disable Smilies option before posting :D
« Last Edit: January 10, 2014, 09:18:57 am by KP »
The Sparx Team
[email protected]