Sparx Systems Forum

Enterprise Architect => Uml Process => Topic started by: blabla on May 22, 2015, 05:03:44 pm

Title: State-chart execute do operation doesn't work
Post by: blabla on May 22, 2015, 05:03:44 pm
Hello
I want to execute all the time an operation with the action do.
I use this to count up something. Here is my code in the section Behaviour.

Code: [Select]
sim.T_WTO = sim.T_WTO+1;
Trace("time = "+ sim.T_WTO );

first time the code will be execute, but after the first run the operation will be not execute again. ??? may be someone can help why it doesn't work
Title: Re: State-chart execute do operation doesn't work
Post by: Eve on May 25, 2015, 08:55:53 am
My understanding is that a do operation is executed once on entry to the state. When it completes it sends a completion event to the state machine. It can also be interrupted by leaving the state.

What it doesn't do, is loop.