I have two DSL files for the same application context. I want to assemble them one after another and run some initialization macro for each one. Everything happens in runtiime.
So here is the problem. When FirstInitializationMacro is started, application is still in transition to ASSEMBLING_END state. When second file is assembled, application is still in the same transition between states. So no other transition can happen while assembling second file, second ASSEMBLING_END won't start new transition, and SecondInitializationMacro never starts.
I would like to have a separate state machine event, that shows that all transitions are finished, and I can safely start assembling second file.
I have two DSL files for the same application context. I want to assemble them one after another and run some initialization macro for each one. Everything happens in runtiime.
So in file1.xml I have this:
FirstInitializationMacro is synchronous, and at the end of its job it runs assemblng of second DSL file, which also has:
So here is the problem. When FirstInitializationMacro is started, application is still in transition to ASSEMBLING_END state. When second file is assembled, application is still in the same transition between states. So no other transition can happen while assembling second file, second ASSEMBLING_END won't start new transition, and SecondInitializationMacro never starts.
I would like to have a separate state machine event, that shows that all transitions are finished, and I can safely start assembling second file.