How I would build this:
- Determine the quantities of each type for that day at the start of each day. Store them in an array. (For example [1311, 1275, 797])
- Set the inter-arrival time so that the total number of items will be produced within the day.
- When setting the type for an item, look at the type of previous item (stored somewhere, probably a label) and choose the next type from the remaining eligible types. This is the somewhat tricky part since you also have to make sure that you do not get into a situation where the pending quantity of one type is larger than the sum of the other two.
- When the type is known, decrement the respective array by one. When all entries are 0, start over at the start of the next day.
While it is possibly to write this logic in triggers of a 3d source, I would personally use Process Flow. It visualizes the logic so it's easier to follow and also makes it easy to run the logic once per day by setting up a source to create a token at the start of each day.
