You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
protectedvoidontoB(Stringfrom, Stringto, FSMEventevent, Integercontext) {
System.out.println("Entry State \'"+to+"\'.");
// a new line to get current stateSystem.out.println("getCurrentState \'"+ getCurrentState() +"\'.");
}
run it and I get
Transition from 'A' to 'B' on event 'ToB' with context '10'.
Entry State 'B'. getCurrentState 'A'.
Current state is B
Function "ontoB" called because state is entering "B", so I thought I should get state result as 'B'.
Am I misunderstanding this? or Is there an setting can alter this to what I expected?
I am using your great work in my app, thanks for making this.
The text was updated successfully, but these errors were encountered:
Thanks for choosing squirrel state machine. State only changed when transition finished successfully which include exit original state, perform transition and enter new state. All these steps must be all executed successfully then state can be changed.
BTW, for further questions, I would suggest to post on Squirrel Forum instead of creating a issue.
Hi Henry~
I am confused why is State not changed when an Entry method is called?
or this is an issue?
Take this test for example
https://github.com/hekailiang/squirrel/blob/master/squirrel-foundation/src/test/java/org/squirrelframework/foundation/fsm/samples/QuickStartSample.java
if I add a new line into function "ontoB"
run it and I get
Function "ontoB" called because state is entering "B", so I thought I should get state result as 'B'.
Am I misunderstanding this? or Is there an setting can alter this to what I expected?
I am using your great work in my app, thanks for making this.
The text was updated successfully, but these errors were encountered: