Sparx Systems Forum

Enterprise Architect => Bugs and Issues => Topic started by: PeterHeintz on October 10, 2019, 11:36:50 pm

Title: Activity Parameter Direction and Action Pin Kind
Post by: PeterHeintz on October 10, 2019, 11:36:50 pm
Any idea why an activity parameter can have a direction inout/return but an action pin can only have input or output?
Title: Re: Activity Parameter Direction and Action Pin Kind
Post by: KP on October 24, 2019, 09:47:12 am
Because UML. Actions don't have parameters.
Title: Re: Activity Parameter Direction and Action Pin Kind
Post by: PeterHeintz on October 24, 2019, 11:19:15 pm
Hi KP,
yes actions do not have parameters but actions have pins.

And for call behaviour actions the parameters of the called activity become action pins.

But why can I specify a inout direction on parameter but not for the derived pins?

And why EA only derives the pins from the parameters and not the other parameter attributes like e.g. direction as well?

Any answer which make sense?
Title: Re: Activity Parameter Direction and Action Pin Kind
Post by: qwerty on October 25, 2019, 12:36:39 am
And putting one or two on top:
- Changing parameters on an activity does not influence instantiated call behavior actions.
- Stereotypes from activity parameters are not propagated to the pins.

q.
Title: Re: Activity Parameter Direction and Action Pin Kind
Post by: PeterHeintz on October 25, 2019, 12:45:39 am
Yes, and multiplicity, ordering, stream, Control Type, ... is not propagated as well, just to support the user in creating inconsistent models. ;)
Title: Re: Activity Parameter Direction and Action Pin Kind
Post by: KP on October 25, 2019, 08:44:20 am
But why can I specify a inout direction on parameter but not for the derived pins?

You would need to ask the authors of UML.

If a call behavior action calls a behavior with an inout parameter, I would expect that parameter to map to separate input and output pins on the action.