Hi,
Im not sure what you are wanting to achieve, perhaps you could elaborate a little more?
Here’s a link to a more complex event driven state machine I built a while back. This exmple implements the RAFT concensus algorithm. The model is classless and executable, so it may give you some inspiration of what’s possible…
regards
Rob