11
« on: October 08, 2018, 11:56:45 pm »
Hi,
I'm reviewing EA state machine simulation functions, starting with the manual simulation.
I noticed that my system state machine didn't let me choose the next trigger when more than one outgoing transition is defined on a state. I eventually figured out that using a transition out from a state that contains a state machine breaks the manual simulation.
Consider the following:
Initial -> OFF
OFF -> ON via the "on" trigger
ON -> OFF via the "off" trigger
ON has a state machine with STOP, PLAY, PAUSE. I have a 2 transitions from PLAY: Stop and Pause.
The manual simulation only prompts to choose between Stop & Pause to leave the "ON.PLAY" state if I delete the trigger to leave state ON to OFF.
Is there a way round to make this work, or is it a limitation in using the manual simulation?
Note: I found a solution in linking all ON substates to the OFF main state with the same trigger name (end states don't work). It doesn't look as clear as the original diagram but all scenarios work. It's similar to Sparx EA Example called "Nested Traces Example"