Hi Simon,
you can use a Scheduled event if you want to automatically, at a certain interval, check these orders.
Using the retrieve from database, you can use a xPath to set conditions for the orders to retrieve. You can then iterate over this list and change the orders correspondingly.