Hey, I am trying to make abstract form machines that spawn actors (inputs) and then these inputs sync their context with the form.
The machines have a more generic approach so all other machines for the forms would have a consistent behaviour.
The configuration of the actors and the form inputs would be carried from the form to its actors, and the form itself contain its own validation to determine when it is valid.
It is important for the machines to be able to communicate between each other, they'd follow a hierarchical order so that form 1 would upon submission allow for form 2 and so on.
Some forms need to intercommunicate so to avoid having a lot of coupling we thought of potentially having like a "bus" like in event driven architecture, and then a topic that each form/input might subscribe / publish to.
Some specific field validations requires to know other fields values too, this is proving to be quite complicated 😦
I hope you could give a hand. if its not very comprehensible tell me and i can elaborate better