Hi Leron,
Add a date attribute where it holds the [%CurrentDateTime%] whenever processing line is happening.
Try to write an OQL which is similar to SQL where you can get the recent record.
Select distinct lotId, weight,max(date atr) from MyFirstModule.Test
group by lotID, weight.
the above query will give you the recent weight for each lotid which is processed