Hello
I'm attempting to define a state machine for a Java application using Apache SCXML. However, I've run into a problem and I'm not sure if this is due to the SCXML framework or me doing something wrong.
I'm basing my test application on the following example (without the android bit):
http://commons.apache.org/scxml/usecases/scxml-stopwatch-on-android.html
The file StopWatch.java (http://commons.apache.org/scxml/xref-test/org/apache/commons/scxml/env/StopWatch.html)
public class StopWatch extends AbstractStateMachine {
public void reset() {
}
public void running() {
}
public void paused() {
}
public void stopped() {
}
}
The problem is the above states are only called once per transition. Is this correct? Shouldn't the state function be called continuously as long as the state machine remains in the given state?
Thanks!