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

Ribbon

Start > Desktop > Design > Scenario Editor

Context Menu

Browser window > Element | Scenarios | New Scenario > Scenario View

Browser window > Element > Scenarios | right-click on existing scenario | Structured Scenario Editor

Keyboard Shortcuts

Alt+1 > Scenario Editor

Other

On the 'Scenarios' tab of the Responsibilities window, click on the Edit button against a scenario (see the Scenarios Tab - Responsibilities Window Help topic)

On the 'Scenarios' tab of the element 'Properties' dialog, click on the Structure Editor button (see the Scenarios Tab - Properties Dialog Help topic)

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 operates on the simple Activity diagrams generated from a Use Case, but not on enhanced Activity diagrams - those generated with ActivityParameters, Actions and Action Pins

Learn more