Author Topic: Requested feature: improvements to action pins  (Read 3934 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Requested feature: improvements to action pins
« on: April 09, 2018, 10:21:25 pm »
Hi all,

Following on from my earlier Bugs & Issues post, I sent the following feature request to Sparx on March 28. I haven't heard back yet, but will update this post when and if.

/Uffe


1) For action pins which do not have a defined Argument but do have a defined Type, provided the type is a classifier, the classifier's tagged values should be included in the pin's extended tagged values.
This is how activity parameters behave.

2) For action pins which have a defined Argument, it should not be possible to edit the Name, Type, Multiplicity, Kind, or its Stream, Control Type or Exception properties.
These properties should all be slaved to the argument's corresponding properties.

3) If an action pin has a defined Argument, and that argument has the Fixed Value property set, it should not be possible to edit the pin's Value.

4) When creating an action pin based on an activity parameter, the pin's Value should be set to the parameter's Default Value, if any.

5) When creating an action pin based on an activity parameter, the pin's Kind should be set based on the parameter's Direction as follows:
in => in
out => out
return => out
inout => this should result in two pins, one in and one out, with otherwise identical properties.

6) When shown in diagrams, an action pin label should contain the following based on which of the pin's properties are set:
Name and Value => "name = value" (Type omitted if set)
Name, no Value => "name : type"
Value, no Name => "value : type"
My theories are always correct, just apply them to the right reality.

PeterHeintz

  • EA User
  • **
  • Posts: 976
  • Karma: +58/-18
    • View Profile
Re: Requested feature: improvements to action pins
« Reply #1 on: April 09, 2018, 10:27:31 pm »
+10
Best regards,

Peter Heintz

PeterHeintz

  • EA User
  • **
  • Posts: 976
  • Karma: +58/-18
    • View Profile
Re: Requested feature: improvements to action pins
« Reply #2 on: April 09, 2018, 11:04:34 pm »
Just one thing more, what would help me.
The dictions of pins should be shown on the diagram like e.g. on bock-ports. Without this representation at least I forget far to often to set the direction right.
Best regards,

Peter Heintz

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Requested feature: improvements to action pins
« Reply #3 on: April 10, 2018, 12:57:22 am »
If you can live with stereotyping them, here's a shape script to show the direction of an activity parameter:
Code: (shape script) [Select]
shape main {
h_align = "center";
v_align = "center";

DrawParentShape();
Print("#direction#");
}

And for action pin:
Code: (shape script) [Select]
shape main {
h_align = "center";
v_align = "center";

DrawParentShape();

if (HasProperty("kind", "input")) {
Print("i");
} else if (HasProperty("kind", "output")) {
Print("o");
}
}

(The pin is too small to show the whole word.)

/Uffe
My theories are always correct, just apply them to the right reality.

PeterHeintz

  • EA User
  • **
  • Posts: 976
  • Karma: +58/-18
    • View Profile
Re: Requested feature: improvements to action pins
« Reply #4 on: April 10, 2018, 04:47:24 pm »
Thank you Uffe!
I will use that as short term solution, until your change request is implemented.  ;)
Best regards,

Peter Heintz