i tried the model u have suggested and the first half of my problem is solved but it doesnt process single parts after the box enters the next station rather the whole container is processed and drained ... and i want every part from the box to be processed the next station... second example was too complex to understand and yet it had worker picking up things from multiple stations rather multiple parts from one station
Here is an example for producing "out of a box".
You could place the box on a place beside the machine, in the exit control of the place you move the first part to the machine. In the exit control of the machine you move the part to another box at a second place. If the box at the second place is full, you call the worker (@.move at the second place) and move the now empty box from the first place to the second place, if this place is empty....
you can move the parts with the exit strategy "carry-part-away". To prevent, that the worker is moving empty boxes, you can use an exitcontrol on the (finished-) part-buffer, like this:
waituntil @.full prio 1; @.move;--call the worker