Tags and keywords
Let's examine first the lowest level Activity, which we can write much like an operation signature as
DialN(n:int[1])
, indicating also its required input Parameter n:int[1]
, which maps to an ActivityParameterNode of the same name as shown in the Activity Diagram:The rest of the flow is, in order:
- An InitialNode.
-
A ReadSelfAction that will retrieve the
Controller
context instance. -
A ReadStructuralFeatureAction that will retrieve the
dialer:Dialer
instance from theController
. -
A CallOperationAction that will invoke the operation
digit(n:int)
in thatDialer
taking ann:int
as input Parameter.
One aim of this tutorial is to then see how invoking that Operation causes a Transition in a StateMachine of another object, but let's see first, how this Activity is used in a higher level Activity, as shown next .