I want a source to make 4 types of products.
To achieve that, I added a trigger in source, 'on creation --> set label and color and added the value "duniform(1, 4, getstream(current))''.
This created first a green color product, then a red then a blue and then again red. But I wanted a 4th different part. The 4th yellow part comes but then many other blue, red and green parts come again before it.
How can I make the source to give me 4 types of parts then again 4 types and then again like that?
Kindly Guide
Some images are attached below for reference.