Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WDESIGNER and version 22.1

When you open the implementation of an operation that has been implemented as activity, the activity diagram opens in the activity editor.

The activity editor consists of different areas:

  1. Diagram Pane
  2. Elements Toolbar
  3. Model Toolbar
  4. Designer Panels

Customizing the Activity Diagram Editor

You have several options to adjust the activity diagram editor. When you open the editor for the first time, the default view is displayed:

  • The Diagram Pane is displayed in the top-right.
    (See Modeling Activities for more information.)
  • Four Designer Panels are shown in the sidebar on the left.
    • The Service Panel
    • The Controls Panel
    • The Attributes Panel
    • The Validation Panel

Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNametip_panel_management
DisableCachingtrue
PageWithExcerptINTERNAL:_designer_excerpts

The diagram pane shows the torso of an activity diagram: only initial node and final node are present. This leads to the validation panel showing errors because a control flow is missing.
Refer to the other pages in this chapter for more information on how to draw a valid Activity diagram:

Children Display

Modeling on the Diagram Pane

While modeling, some general functionalities help you to browse through your model, and to adjust your working location within the model. Refer to Customizing Editors and Panels for more details.

Toolbars

The activity diagram editor features a diagram toolbar in the center top of the diagram pane, and an elements toolbar on the right.

ToolbarDescription

Diagram Toolbar

The activity diagram toolbar assist you during modeling an activity diagram:

Image Added

The available tools are:

Tool IconTool Name

Use the diagram toolbar to jump to the related operation, and to apply undo/redo features.

Icon
Description
Image Modified
Jump to
Select in service panelSelect the related operation in the service panel.
Image Added
Toggle Grid
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameshow_invalid
PageWithExcerptINTERNAL:_designer_excerpts
shouldDisplayInlineCommentsInIncludesfalse
Image Added
Show Invalid
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNametoggle_grid
PageWithExcerptINTERNAL:_designer_excerpts
shouldDisplayInlineCommentsInIncludesfalse
Image Added
Insert/Remove horizontal space
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameadd_horizontal_space
PageWithExcerptINTERNAL:_designer_excerpts
shouldDisplayInlineCommentsInIncludesfalse
Image Modified
Insert/Remove vertical space
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameadd_vertical_space
PageWithExcerptINTERNAL:_designer_excerpts
shouldDisplayInlineCommentsInIncludesfalse
Image Added
UndoUndo your last action.
Image Modified
RedoRedo your last action (after undo).

Elements Toolbar

The elements toolbar contains all elements that you can create on your activity diagram.

IconDescription
Image Modified
Add a final node. An activity diagram can have multiple final nodes.
Image Modified
Add an object node. This can be used to store data locally.
Image Modified
Add a decision. Decisions are used to split the control flow based on conditions/guards.
Image Modified
Throw the exception defined by the parameters. If this error is not caught, it will be sent back to the client.
For more information, refer to User Defined Errors in the xUML Services Reference Guide.

Image Added

Add a literal. It can be connected to output parameters, return parameters or pins (action call or throw exception) that do not have incoming relations.

Activity Diagram Context Menus

You are supported during modeling on the activity diagram pane by various context menus:

Tools Context Menu

Anchor
tools_context_menu
tools_context_menu

Image Added

If you right click on an element, the tools context menu opens. Use it to edit the current element.

The following options are available:

IconDescription
Image Added

Delete the element. Pins can only be deleted if they are invalid.

Image Added

Bring the element to the front.

Image Added

Send the element to the background.

Image Added

Align the element to the grid.

Image Added

Open the implementation of the element in a new tab.

Image Added

Jump to the element in the Service panel.

Info

The available options depend on the selected element.

Extended Tools Context Menu

Anchor
x_tools_context_menu
x_tools_context_menu

Image Added

If you have selected more than one element on the pane, the tools context menu is enhanced with additional options:

IconDescription
Image Added
Align left
Image Added
Align right
Image Added
Align center
Image Added
Align top
Image Added
Align bottom
Image Added
Align middle
Image AddedDistribute horizontally
Image Added
Distribute vertically
Image Added
Align relation
Info

The available options depend on your selection on the diagram pane.

Control Flow Context Menu

Anchor
relation_context_menu
relation_context_menu

 Image Added

Right-click a control flow to open the context menu. The following options are applicable to control flows:

IconDescription
Image Added

Delete the relation.

Image Added

Bring the relation to the front.

Image Added

Send the relation to the background.

Image Added

Align the relation.

Diagram Context Menu

Anchor
diagram_context_menu
diagram_context_menu

Image Added

With a right-click on the diagram pane itself, you open the diagram context menu:

IconDescription
Image Added

Jump to the related operation in the Service panel.

Keyboard Shortcuts

Find below a list of all keyboard shortcuts that are available in the activity diagram editor.

Table Filter
hideControlstrue
sparkNameSparkline
datepatterndd M yy
globalFiltertrue
id1639493332969_-1847571651
sortShortcut ⇧
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
ShortcutDescription
Arrow downMoves the editor pane downwards.
Arrow upMoves the editor pane upwards.
Ctrl + 1, 2, 3 ... 9

Switches to the Designer tab corresponding to the chosen number. This feature is available for the first nine open tabs.

Ctrl + D
Closes the active Designer tab.
Ctrl + Mouse WheelZooms in (scrolling up) or out (scrolling down) of the current model.
Ctrl + Shift + DCloses all tabs and switches to the service tab.
DelRemoves the selected element(s) from the diagram pane.
Esc

Aborts the following procedures:

  • adding a new element
  • resizing an element
  • closing a dialog
  • drawing a control or object flow
  • changing the path of a control or object flow
Mouse WheelMoves the diagram pane up or down.
Shift + Page downSwitches to the next Designer tab from left to right.
Shift + Page up
Switches to the next Designer tab from right to left.