You can create activity diagrams and sequence diagrams
from activity diagrams. An activity diagram is the specification for
its related activity.
Before you begin
Activity modeling in SysML emphasizes the inputs and outputs,
sequence, and conditions for coordinating other behaviors, instead
of who owns those behaviors.
Note: For statecharts, you can have a Diagram
Connector match up with multiple Diagram Connectors
of the same name. In activity diagrams, you can only have a one-to-one
match for a Diagram Connector, and if you want to branch
out after, you can add a Fork Connector after the Diagram
Connector.
When you create an activity, you automatically create
an activity diagram. An activity can be modeled under use cases. The
use cases activities can be run and simulated the same as class activities.
An activity can also be modeled under an operation. Invoking the operation
will result in executing its activity. The activity implementation
can be visualized.
You can also model and simulate time events
and specify pins for send and accept event actions. Use the auto-synchronization
mechanism for quick and safe mapping.
Procedure
- Start Rational® Rhapsody® if it is not already
running and open the model.
Note: You can use the provided
activities diagram simulation to test the new features. The sample
is present in Rational Rhapsody installation folder
Samples\SystemSamples\ActivitiesDiagramSimulation.
- Navigate to the Packages,
Use cases, Operations or blocks, that you want to contain the activity
or the activity diagram.
- Right-click on the component of the package,
use case, block or operation that you want to add the activity diagram
to, and select , or click the
Activity Diagram icon
at the top of the window. 
Results
Rational Rhapsody adds both a new activity
and, under the activity in the browser, a new activity diagram to
the model, and opens the blank diagram in the drawing area. You can
change the default activity name, but not the diagram name. It is
useful to immediately show the activity frame using the Show/Hide
Activity Frame option. 
SysML
activities specify the following information:
- Coordination of executions of lower-level behaviors
- Flow of control
- Flow of data
See Creating Harmony-SE projects for
more information about systems engineering activity modeling in Rational Rhapsody.