Spring Statemachine Factory -stays in memory
问题 I have used Spring state-machine in quite a complex scenario. I will explain my problem with the simplest part of the SM. Refer below image. This is my main state machine The state circled in red points to the following sub-machine So, as you can see, I have 3 actions. sendBasicTemplate, timeoutLogAction and processBasicTemplateReply. I will provide the related code segments and my configuration below. What I have observed during this process is that the state-machines created by the factory