archimatetool / archi

Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
MIT License
914 stars 267 forks source link

[Feature request ] Include Labels in the Specialization definition #1026

Open amazingmx opened 4 months ago

amazingmx commented 4 months ago

I would like to propose the following, which to the best of my knowledge does not exist yet, if so, please enlighten me and show me how to, I would be very thankful for that.

Feature request

Include in the definition of a Specialization a predefined Label, such that a predefined text, stereotype etc. can be automatically included once the artefact is placed in the model.

Example of use case

Having a SWOT analysis:

  1. Create different Specializations for the artefacts of type "Assessment": S, T, W, O.
  2. Once the different Specialization is placed on the model, e.g. a Threat (T). The object is placed with a predefined label: "[T]: name", where 'name' is the actual Name.

This is already possible, but one has to copy-paste the "Label Expression" to all the objects placed in the model, since it cannot be embedded yet in the Specialization.

Thanks!

startsevsa commented 4 months ago

Can it be solved with the use of conditional labels (if,nvl &etc.) based on element property ?

amazingmx commented 4 months ago

Can it be solved with the use of conditional labels (if,nvl &etc.) based on element property ?

Probably yes, but the Labels are linked to objects and not to Specializations, i.e. one has to do it for every object after being placed in the canvas.

The intention of the request is to have it predefined when the Specialization is created, and every-time the Specialization object is dragged from the Palette, it contains already this label (same with color, properties, etc,)

startsevsa commented 4 months ago

Can it be solved with the use of conditional labels (if,nvl &etc.) based on element property ?

Probably yes, but the Labels are linked to objects and not to Specializations, i.e. one has to do it for every object after being placed in the canvas.

Hm... maybe at this time add a property to the element, which value will be calculated by label formula from the specialization?

At present, sometimes I use a icon defined for the specialization - more pleasant, assuming that colours are reserved in Archimate standard.

amazingmx commented 3 months ago

Thanks for your reply. I get what you mean, but still besides the name and the icon, nothing else can be specified for an specialization, or am I overlooking something?