Adding a state constraint

State constraints are used to associate an operator action with the state. To add a state constraint perform the following steps:
  1. Select the state.
  2. Right-click and select Add UML > Constraint.
    addUMLConstraint
  3. Enter the expression for the body of the new constraint.