Hi Henry,
The context doesn't stays with the state machine instance. Is it true ? When I call stateMachine.start(Context c); The context is only used for some entry and exit condition.
When state moves to another state after fire(New Context), the previous context is lost.
Please correct if my understanding is not correct.
Also if you can point me to right direction in adding new functionality.
I am trying to store the context data through out the state machine instance lifetime And when I fire(context) , this become the state local context. When the state moves to another state the context set in fire will be lost but the context set in start should alive. Similar to BPM engine where we have process variable and task variable.
Thanks
-Vishal