Sparx Systems Forum

Enterprise Architect => Uml Process => Topic started by: Harbottle on October 05, 2006, 06:42:42 am

Title: Action - Constant Inputs
Post by: Harbottle on October 05, 2006, 06:42:42 am
Is it valid to show a "constant" input to an action (such WriteStructuralFeature) as a "ActionPin" with no arrow pointing it.

For example, I have an action that writes "0" to a structural feature as the result of a branch of a control flow. I am showing this as a WriteStructuralFeature action, with the input pin unconnected, but with "0" attached to it.
Title: Re: Action - Constant Inputs
Post by: jeshaw2 on October 05, 2006, 08:21:49 pm
When the inital value is a constant, I do this with a ValuePin.  See the UML 2.1 Specification, Section 11.3.50 for this.  It is notated like a normal input pin with a value specification written beside it as an adournment.

In another approach, an action with a stereotype of <<ValueSpecificationAction>>  can be used to initalize the pin's value.  In this case, the value pin is an embedded output pin on the initalizing action element.