Conditions and Actions in the State Diagram

It is possible to type the ESDL code for a condition or action in the state diagram, directly into the state editor or transition editor. In this case it is not necessary to create a specification in a separate diagram, the Edit button is inactive.

You can declare variables and parameters by clicking on an element button in the state machine editor and typing a name into the Outline tab. You can then use those variables in the ESDL code by typing in their names. Likewise, you can refer to any trigger arguments, imported components, their methods or the elements defined within them by typing the name. This makes it possible to specify complex state machine behavior with just a few lines of code, and without any additional diagrams. The ESDL language is described in ESDL Editor.

See also

Specifying Actions in the State Editor

Cutting, Copying and Pasting ESDL code

Specifying Conditions and Transition Actions in the Transition Editor

Automatic Insertion of Comment Lines

Activating/Deactivating Outlining of Actions/Conditions

ESDL Editor