Hello, I am trying to unload the boxes that are in the agv to a processor using processflow. I tried with queues and the exception is the same. The idea is that in my Unload activity, I unload a box to the line and I loop it until there is nothing else to load. I check this end condition with token.agv.subnodes[1].subnodes.length.
Always in the second time that I am going to unload, this exception emerges, in the unload activity. I made some breakpoints and simplified the code but it still occurrs.
Maybe it is relevant that I created a pallet and 4 boxes in it but I do not use their token references to try to unload. I always use the token.agv.subnodes...
I have attached the model. AGV Simulation.fsm