I have an active state chart where some states have a tm() transition.
I have another process that can change some data in my class, and when that happens, I wish the tm() to be interrupted and the current state restarted right away.
I saw the cancelTimeout(arg) and cancelTimeouts() methods in my class but I'm not sure how to used them and not sure if they do what I just described.
What I did up to now is that when the other process changes my data, I call a trigger method to restart the state right away but it does not appear to be working.
What would you suggest to do?
Also, is there any doc/methods that would let me know in which current state my class is?
Note: I'm using Rhapsody 7.5.1 for C++ developers.
Re: Cancel and restart tm()2013-02-22T22:54:46ZThis is the accepted answer. This is the accepted answer.Actually I thought calling a transition on the same state did not work, but it appears it does work.
I was simply not in the right state when I was doing it!
Using Rhapsody 7.5.1 for C++ developers