In reply to ingamara:
I would use a temp queue to store the “calculated expected items”.
Later in your code, when the “some particular cases” will be TRUE
→ I will update the specific fields in the item retrieved from the queue and will add it to the scoreboard.
If “some particular cases” will be FALSE →
I will just add it as is to the scoreboard.
Hope it helps.