In the model that we have uploaded we want to that the arrival time and the quantity of the source to be dependent from another queue:
The arrival time of the Type1: When the qReference1 has less than 174. We know that the script is the following; Model.find("qReference1").subnodes.length <174, but we don´t know where we have to put it.
Quantity of the Type1: It has to be 242- The quantity of the material that is in the qReference1. We know that the script is the following; 242 - Model.find("qReference1").subnodes.length, but we don´t know where we have to put it.
Like that with all the types.
We will be grateful if you help us.