Reputation: 11
i tried to get batch size values from database table in sequence, but getting errors in process.
i tried to set a condition to choose the size according to id parameter in my agent.
Upvotes: 0
Views: 111
Reputation: 12640
This bit does not allow access to agents flowing through.
As suggested previously, it is easier to store the batch size within the agent as a parameter p_BatchSizeToUse
(define it in the Source when the agent is created).
Then, simply set the batch size upfront in a block upstream of the Batch block using myBatchBlock.set_batchSize(agent.p_BatchSizeToUse)
HOWEVER: It is not logical to vary the batch size agent by agent. If the first agent has a batch size of 5 and the second has a batch size of 10, the first agent's batch size would not be considered as the 2nd takes over. You will not get the desired result with your setup, tbh.
Upvotes: 1