Closed sytabaresa closed 1 year ago
I think this is a valid way to model the behavior yeah. Are you saying it isn't working?
I guess that in step2
the invoke form that I use is not valid, because its a function that returns a machine (dynamic machine) instead a promise. I think that could be a good API but in this moment is not supported
Oh right, sorry. We do treat all functions as being promising-returning at the moment. That's an interesting pattern though. Maybe it's something we could support in the future.
I made a PR to add support to this, hoping that you can review it :grin:
Since https://github.com/matthewp/robot/pull/183 got merged, this issue should be able to be closed.
Hi robot team!
It's posible this dynamic root/child machine implementation?:
I am trying to implement a plugin oriented machine system that can change the child machine based on runtime arguments, like a UI interface that have a root controller machine and many child plugin command machines. I know that its possible to interpret the child machine inside a promise invoked in
step3
but that approach miss the nested send mechanism and other things.Thanks for you attention.