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 Browser window, select an element and use one of these access paths to display the Scenarios window, then right-click on a space and select the 'Create Structure From Generated Activity Diagram' option.

Ribbon

Design > Element > Editors > Scenarios (existing scenario) : Edit

Design > Element > Editors > Properties Dialog > Scenarios > Scenario Editor

Context Menu

Right-click on element | Properties | Responsibilities > Scenarios (existing scenario) : Edit

(In the Element tab of the Browser Window) Right-click on scenario | Show Scenario Editor

Keyboard Shortcuts

Ctrl+4 > Scenarios (tab of the Responsibilities Window)

Shift+Enter > Scenarios ('Properties' dialog)

Shift+Alt+S ('Properties' dialog)

Alt+9 > Scenarios

Other

On diagram, right-click on element > Properties > Special Action > Scenarios > Scenario Editor

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 Scenarios view.

The 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