Action Notation

Actions of most types are depicted as a round-cornered rectangle containing the Action type and Action name, as follows:

ActionType

Other types have their own specific notation, as shown:

Action Kind

Notation

See also

AcceptEvent

Action-AcceptEvent

 

AcceptEvent Actions

AcceptEventTimer

Action-AcceptEventTimer

 

AcceptEvent Actions

CallBehavior

Action-CallBehaviour

 

 

CallOperation

Action-CallOperation

 

 

SendSignal

Action-SendSignal

 

SendSignal Action & BroadcastSignal Action

AcceptEvent Actions

For an Accept Event Action element, the Properties dialog contains a Triggers tab on which you define one or more triggers to denote the type of events accepted by the Action.

Field

Usage

See also

Name

Specify the name of the trigger.

 

 

Type

Specify the type of trigger: Call, Change, Signal or Time:

Call - specifies that the event is a CallEvent, which sends a message to the associated object by invoking an operation
Change - specifies that the event is a ChangeEvent, which indicates that the transition is the result of a change in value of an attribute
Signal - specifies that the event is a SignalEvent, which corresponds to the receipt of an asynchronous signal instance
Time - corresponds to a TimeEvent; which specifies a moment in time

 

Code generation for State Machines currently supports Change and Time trigger events only, and expects a specification value.

 

 

Specification

Specify the event instigating the Transition.

For an AcceptEventTimer Action, you can type a JavaScript expression in this field evaluating to the number of ticks to wait for.

 

 

SendSignal Action & BroadcastSignal Action

For these Action elements, you can model the signal to be sent and the associated arguments to be conveyed, using the Signal tab of the element Properties dialog.

Field/Button

Action

Signal

Click on the (  ...  ) button and select the required signal from the Select Signal dialog.

 

Attribute

Click on the drop-down arrow and select the attribute (as previously created in the Signal element) with which the arguments are to be associated.

 

Value

Type the appropriate value for the attribute.

 

Add

Click on this button and select the appropriate ActionPins from the Select Pin dialog, to identify the arguments for the Signal.

To assign more than one ActionPin, press ( Ctrl )  whilst you select each one.

 

Save

Click on this button to save your changes.

 

Structural Feature Actions

Enterprise Architect supports the following types of Structural Feature Actions:

AddStructuralFeatureValue
ClearStructuralFeature
ReadStructuralFeature
RemoveStructuralFeatureValue
WriteStructuralFeature

 

For these actions you can set Ports, Parts or Attributes as the target structural feature.

Access    Right-click Action element | Advanced | Set Structural Feature: Add

Step

Action

1

On the Select Property dialog (a variant of the Select <Item> dialog), browse or search for the appropriate structural feature, and double-click on it.

The feature name and location displays in the structuralFeature field of the Set Structural Feature dialog.

 

2

Click on the OK button to save the setting.