Setting transition types

Transitions from the provided initial state (InitialState) are always automatic. Additional transitions that are created in UML diagrams in WSRR Studio, and which are not from the initial state are, by default, operation-based. WSRR Studio automatically sets these transitions to operation-based by adding the Signal type of trigger event to the transitions.

About this task

When you add a transition between two states and then specify its name, the transition and its associated signal are assigned the same name by default, in the UML diagram. In general also, if you rename a transition, the name of its associated signal automatically changes to match the renamed transition.

In a UML diagram, transition names must be unique. So if you add a transition and then update its name to a name that is already assigned to another transition, an error message is displayed to inform you that duplicate names are not allowed. Change the name to a unique name, which will then also be assigned to the associated signal by default.

Where the same signal is added to multiple transitions, WSRR Studio will not change the name of the signal if any of these transitions is renamed.

Because signals are automatically created when you add transitions, you might want to replace the default signal that was added to a transition. You can remove this default signal and reuse another, as follows:
  1. Right-click the signal name in the diagram and then click Delete from Model to delete the signal. Then, confirm the deletion.
  2. From the WSRR Configuration Project Explorer view, expand Models and then <<LifeCycleMode>>LifeCycleDefinition, and locate the required signal in the list of items displayed.
    Tip: Signals are prefixed with a <<LifeCycleSignal>> tag, and are listed in alphabetic order.
  3. Drag and drop the signal from the Explorer view on to the transition in the UML diagram.

When you remove a transition from a UML diagram, its signal is also removed. However, the signal is still accessible from the WSRR Configuration Project Explorer so it can be used elsewhere.