Is it possible for me to look up the value in the arrival table which have not yet triggered and swap them with the current trigger based on model condition. for example below is the original arrival table.
Time Name Quantity Label
1 Part 1 X
2 Part 1 Y
3 Part 1 Y
4 Part 1 Z
5 Part 1 X
6 Part 1 Y
7 Part 1 Z
lets say now at time 4 when part Z is supposed to be created, target batch size is 3 I want part Y which was to be generated at time 6 to be generated now and same will be swapped with part Z which will now be generated at time 6. and this swap should only happen if there is availably to of part in future like
Time Name Quantity Label
1 Part 1 X
2 Part 1 Y
3 Part 1 Y
4 Part 1 Y
5 Part 1 X
6 Part 1 Z
7 Part 1 Z
which function can I use to access the arrival table and change / swap