spring-projects / spring-statemachine

Spring Statemachine is a framework for application developers to use state machine concepts with Spring.
1.51k stars 598 forks source link

State Machine with Null State and Event #1154

Open rishavganguly007 opened 3 months ago

rishavganguly007 commented 3 months ago

Hello, I need to create a state machine similar to this image below,

image

so both the state and event are stored in DB and they can be null, so if you follow the image the black dot represent a null state (ie value is null in DB itself), similary if at the same time, event is also null (E1) it goes to a new state ( in img, E1 -> S2).

So, I needed help for this scenario, like how I can handle this using the spring-statemachine. It will be helpful if anyone can guide me on this.

Thanks, Rishav