COLA
COLA copied to clipboard
Put the new state machine into stateMachineMap even it exists
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.