Prev Next

Generate Scenario From Activity Diagram

You can generate a range of diagrams from a scenario in an element. Conversely, you can also generate a structured scenario within an element from an Activity diagram, reverse engineering the steps from the diagram elements (effectively either regenerating the scenario within the Use Case, or transferring a scenario into another Use Case).

Access

On a diagram or in the Project Browser, select an element and use one of these access paths to display the 'Structured Specification' tab, then right-click on a space and select the 'Create Structure From Generated Activity Diagram' option.

Ribbon

Design > Element > Responsibilities > Scenarios > Structured Specification  or

Design > Element > Properties > Properties Dialog > Responsibilities > Scenarios > Structured Specification

Context Menu

Right-click on element | Properties | Responsibilities > Scenarios > Structured Specification

Keyboard Shortcuts

Alt+Enter > Scenarios > Structured Specification  or

Ctrl+Shift+3 > Scenarios > Structured Specification  or

Shift+Alt+S > Structured Specification

Other

Double-click on element > Scenarios > Structured Specification

Generate a scenario from an Activity diagram

Step

Action

See also

1

On the 'Select an Activity (generated from a UseCase Scenario) containing the Diagram' dialog, search for and select the Activity containing the required diagram.

Select Dialog

2

Click on the OK button.

A prompt displays to remind you that any existing scenario steps will be deleted.

3

Click on the Yes button.

The system validates the diagram (displaying the results in the 'Scenario Generation' tab of the System Output window) and, if the diagram is valid, generates the scenario steps in the 'Structured Specification' tab.

System Output Window

Notes

  • The source Activity diagram must be generated from another Use Case scenario
  • This facility does not operate on the enhanced Activity diagrams generated from a Use Case - those generated with ActivityParameters, Actions and Action Pins

Learn more