In the attached model one by one item is coming from source 1 to processor1. At the same time a lot size of 500 is going to queue2 from source 2 and then a lot of 15 from those 500 is going to processor1 to get process with one from source 1. I am aware about by assigning manually to source like arrival schedule and by performing batching from queue2 we can do this process. But I want to try this process with an custom code so that I can create a situation like in the beginning a batch of 500 reach at queue2 then a batch of 15 from those 500 should reach to processor and as 80% from those 500 left from queue2 another batch of 500 from source 2 should reach queue2. I am not interested to use combiner because that one item from queue1 and 15 from queue2 get join or not is not a matter. Just I want to perform everything with the help of code from source 2 to queue2 to processor 1.dummy-model.fsm