Whenever there are multiple products running on a production line, this script function will move the newest product forward to the passed in cell. It achieves this by searching backwards from the designated cell for a cell indexed to a product with a different operationUUID from the product on the designated cell. If a previous product is discovered, it is indexed forward to the designated cell. If a previous product is not discovered, an error is thrown. In the case that we successfully index to the last cell on the line, the run for the previous product at that cell is ended automatically. Finally, an error is thrown if following through with the indexing operation would completely overwrite a product on the line because it has not yet been indexed further down the line.
Top Level Cells Only
Only cells and cell groups at the first level under the line can utilize indexing. All members of a cell group will have the same product code and operation UUID. The indexing feature is not available within a cell (i.e. a cell can only have one product code running at a time) or within a cell group.