Open AdityaZagadeCT opened 2 years ago
Is there any way to maintain order in which actions will be executed, when an event is sent to statemachine?
When configuration is stored in DB.
When configuration is written directly in code, order is maintained.
StateMachineFactory is configured to read configuration from db repository. However then statemachine is created, the order of actions is not maintained. I suspect, its because the results returned from DB are not in any particular order.
Logs 2022-10-12 22:01:19.474 INFO 58704 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 7082 (http) with context path '' 2022-10-12 22:01:19.482 INFO 58704 --- [ restartedMain] com.poc.Main : Started Main in 2.076 seconds (JVM running for 2.288) Action2 Action1 Action1 Action2 Action1 Action2 Action2 Action1 Action2 Action1 Action1 Action2 Action1 Action2 Action2 Action1 Action2 Action1 Action1 Action2