Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357682

Summary: [ActivityDiagram] control flow should automatically create guard and weight
Product: [Modeling] Papyrus Reporter: Raphael Faudou <raphael.faudou>
Component: CoreAssignee: Pauline Deville <pauline.deville>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: anass.radouani, faure.tristan, mathieu.velten, raphael.faudou
Version: 0.8.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
See Also: https://git.eclipse.org/r/92691
https://git.eclipse.org/r/104002
https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=a1d06f821518dd68414ab0576f51d7fafde19d77
https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=f161c1dcd4c3ded442b28f65ca4358b90c9cff2d
Whiteboard:
Attachments:
Description Flags
Add true as Default Value to the Guard and 0 as Default value to The Weith of a control flow none

Description Raphael Faudou CLA 2011-09-14 16:22:14 EDT
When creating a control flow between two actions, weight and guard properties are not set. As they are mandatory, the model is not valid.
Guard should be created with default value = true
Weight should be created with default value = 0
By default, those two labels should not be visible.
Comment 1 RADOUANI anass CLA 2011-09-30 09:57:45 EDT
Created attachment 204382 [details]
Add true as Default Value to the Guard and 0 as Default value to The Weith of a control flow

I, Anass Radouani, have written 100% of the code contributed to fix this bug.
I have the right to contribute this code and have filled the headers with the
appropriate License.
This contribution has been checked by and committed under the responsability of
Tristan FAURE.
Comment 2 Mathieu Velten CLA 2011-09-30 11:58:11 EDT
commited on branch & trunk
Comment 3 Raphael Faudou CLA 2011-10-02 07:48:42 EDT
Works but visibility has not been managed.
By default we do not want to see :
* weight which is very rarely used.
* control flow name as it does not provide any semantics (semantics are given by the arrow itself as a sequence between two actions)
* guard. It is usefull to see but generally most control flow will not have guard. So guard will be made visible by end user with label connector management.

note: recent work might have introduced a regression on validation.
Comment 4 Eclipse Genie CLA 2017-03-09 08:35:29 EST
New Gerrit change created: https://git.eclipse.org/r/92691
Comment 5 Eclipse Genie CLA 2017-08-30 10:19:43 EDT
New Gerrit change created: https://git.eclipse.org/r/104002
Comment 7 Eclipse Genie CLA 2017-09-01 04:19:50 EDT
Gerrit change https://git.eclipse.org/r/104002 was merged to [streams/3.0-maintenance].
Commit: http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=f161c1dcd4c3ded442b28f65ca4358b90c9cff2d