-
Notifications
You must be signed in to change notification settings - Fork 768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How hard would it be to dynamically generate state machine workflows dynamically? #353
Comments
Yes, I would think that this is possible ;-) |
Sorry, that wasn't very helpful. You could use a class that has a method that accepts the state machine as an argument, and configures it according to the configuration and the class' needs. You could use the PermitDynamic to trigger a transition to any state. I once made a control system for a high voltage generator, and I made a GUI to create voltage sequences for conditioning the X-ray tubes, which was then run by another GUI. So yes, it should be doable. |
That looks like the StatePattern implementation of state machines. We created a similar implementation of that pattern and are currently discussing whether to use stateless or to integrate our solution with stateless. |
@Toxantron I'm just curious what you decided on? |
We will keep our implementation using base classes for a state machine, derived classes as states and methods as triggers or for state specific behavior. The last one has been really helpful to clean up components with lots of However I do see use cases for state less within MORYX for smaller state machines like connection handling, were our current approach sometimes feels overblown, but going back to I took a second look at ObjectsAsStates, so I am unsure how our pattern would integrate with stateless. So thanks for following up and I might get back to you when we evaluate stateless within a driver or something. |
Thanks for responding. |
Hi everyone around,
My idea would be to use Sateless to build up a sort of UI that would at the end generate a State Machine workflow that I could run dynamically.
Would this be something feasible using Stateless?
The text was updated successfully, but these errors were encountered: