I have a source connected with 4 queues. The way to send to port is First available. I want to get the output value of the source for each item and reuse it for the label Place.
This is what I've written in Assign Labels :
- int output = Model.find("Source1").as(Object).stats.output.value;
- Object Place = Model.find("Source1").as(Object).centerObjects[output];
- return Place;
But it shows an error : Array index out of bounds
Can someone helps me to correct it or is there another way to do it?
Thanks