# State Actions

In the browser a state action may contain transitions

The state action's properties will be exposed below.

## Menus

The state action menu appearing with a right mouse click on its representation in the browser is something like these, supposing the action not read-only nor deleted (see also menu in a diagram) :

### Menu : edit

edit allows to show/modify the action properties. In case the action is read-only, the fields of the dialog are also read-only.

#### State action dialog, tab Uml

The tab Uml is a global tab :

The proposed stereotypes are the default one specified through the Default stereotypes dialog more the current one (empty here). It is possible to choose into the list or to give a new one, or to empty it.

The editor button visible above and associated here to the description, allows to edit the description in an other window, or to call an external editor (for instance Xcoral) specified through the environment variable BOUML_EDITOR. Note that this external editor have to create an own window, its parameter is the pathname of the file containing the description, its execution is done in parallel with BOUML which looks each second at the file contents to get the new definition until the dialog is closed (I do not like very much this polling but this works even QT isn't compiled with the thread support).

#### State action dialog, tab Ocl

The Ocl tab allows to specify the state action expression using the Ocl language, but in fact BOUML doesn't check the syntax, this is just a convention.

#### State action dialog, tab C++

This tab allows to specify the state action expression in C++, but in fact BOUML doesn't check the syntax, this is just a convention.

#### State action dialog, tab Java

This tab allows to specify the state action expression in Java, but in fact BOUML doesn't check the syntax, this is just a convention.

### Menu : duplicate

The menu entry duplicate clone the state action without its children

### Menu : referenced by

To know who reference the current state action through a transition.

### Menu : mark

See mark

### Menu : delete

The menu entry delete is only present when the state action is not read-only.

Delete the state action and all its children, and all the representation of them in the opened diagrams. After that it is possible to undelete them (from the browser) until you close the project : obviously the deleted items are not saved !

### Menu : tool

The menu entry tool is only present in case at least a plug-out may be applied on a state action. The selected tool is called and applied on the current state action.

## Default stereotypes

The dialog allowing to set the default stereotypes :

## Drawing

Depending on its stereotype a state action is drawn in a diagram as a rectangle, a convex pentagon or a concave pentagon :

A right mouse click on a state action in a diagram calls the following menu (supposing the state action editable) :

### Menu : edit drawing settings

These drawing settings concerns only the picture for which the menu is called.

A settings valuing default indicates that the setting specified in the upper level (here the diagram) must be followed, obviously this one may also be default ... up to the project level. When you add a state action in a diagram, all the settings are set to default.

#### drawing language :

Allows to specify the used language showing the expression

#### State action color :

To specify the fill color.

### Menu tools :

Appears only when at least one plug-out is associated to the state actions. To apply a plug-out on the state action.

Previous : state

Next : pseudo state