COLA icon indicating copy to clipboard operation
COLA copied to clipboard

Put the new state machine into stateMachineMap even it exists

Open steelcg opened this issue 2 years ago • 1 comments

Put the new state machine into stateMachineMap even the state machine exists in stateMachineMap to avoid "The state machine with id ["+machineId+"] is already built, no need to build again" exception when you are using spring-boot-devtools. If you are using spring-boot-devtools without configuration, the library "cola-statemachine" will be loaded in restartedClassLoader. when you modify code then click CTRL + F9. The new state machine will be put into stateMachineMap but it has existed then lead the error.

steelcg avatar Oct 31 '22 05:10 steelcg

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Oct 31 '22 05:10 CLAassistant