I have 5 restaurants in my model and I want to simulate the impatience of clients in a specific queue,in order to lead the agent to another queue if the ServiceTimeRestaurant1 > MaxWaitingTime (variables that I create). I create these variables in Main and did the statechart in my agent page. But I can´t visualize that in the animation, probably because i was not able to create connections between the agent statechart and the flowchart.
Thank for all the help!
[](https://i.stack.imgur.com/ghjFf.png)
I tried to, somehow, creat a connection, but I did not know who to use it correctly. I also don not know if it the best way to do that.