Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 458386 - [Activity Diagram] ActivityParameterNode symbol may be labeled by its parameter
Summary: [Activity Diagram] ActivityParameterNode symbol may be labeled by its parameter
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Diagram (show other bugs)
Version: 1.1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: M6   Edit
Assignee: Michael Golubev CLA
QA Contact:
URL:
Whiteboard: dura deploy
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-26 04:33 EST by Robert Lundbäck CLA
Modified: 2015-03-16 12:58 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Lundbäck CLA 2015-01-26 04:33:20 EST
The UML specification states (UML spec 2013-09-05 section 15.4.4 subsection Activity Parameter Nodes) that the label of an ActivityParameterNode diagram symbol may be taken from the ActivityParameterNode's parameter.

In current implementation the text "null" is shown as label if the name of the ActivityParameterNode is empty, independent on if there is a parameter defined that has a name or not.

We need to discuss how this shall work. In RSARTE it work differently, there it is always the parameter name that is displayed. 

The somewhat unclear statement in the UML spec, may lead to that a preference is needed to distinguish between the different behaviors stated in the UML spec.

If behavior is different we need to perform a proper maping during import of RSARTE models. Such a bugzilla should be written when the above problem is solved.
Comment 1 Peter Cigehn CLA 2015-01-26 05:35:26 EST
Just to be clear: The behavior in RSARTE is that if the activity parameter node is left unnamed, i.e. either has an unset name or an empty name, then the name label of the activity parameter node is taken from its related parameter's name. This is to avoid having to duplicate the name also for the activity parameter node.

This can be discussed whether this is the criteria that shall be used when the name of the parameter shall be displayed or not. Other solutions are that this is based on preferences, either globally or locally per activity or activity parameter node, or both.
Comment 2 Eclipse Genie CLA 2015-03-12 14:39:10 EDT
New Gerrit change created: https://git.eclipse.org/r/43745
Comment 3 Eclipse Genie CLA 2015-03-13 17:43:14 EDT
New Gerrit change created: https://git.eclipse.org/r/43834
Comment 5 Camille Letavernier CLA 2015-03-16 12:58:41 EDT
> Gerrit change https://git.eclipse.org/r/43834 was merged to [master].

The name of the Parameter is now automatically displayed if the ActivityParameterNode is unnamed. Additionally, this contribution adds some customization options (Appearance-based, CSS-compatible) for ActivityParameterNode labels

I close this task