Why not mark the whole order as valid, invalid instead of each individual item? Even if you want to update each individual item, you should have a central OrderID to identify the items in the same order somehow. Use that variable.
If you used the checkout wizard, the OrderID, is one of the fields in the OrderDetails table that you can use to identify all of the items in that order. It is stored as a session variable in the Store Cart Summary in Database server behavior.