Hi,
Here is my scenario:
1. We have a state model defined for an order management service. Order has around 10 states and the transitions are defined between them
2. The order state is stored in a database
3. When an event is received (say order delivered), the state is retrieved from db, and the event should be fed into the state machine . The transition logic should get executed and the target state should be updated back in db
To be able to do this, what I want is while firing an event, the API should also take the current state. Basically, I don't want the state machine to remember the current state, however, it should be possible to pass in the API.
Can someone please help with this?
Thanks,
Siddharth