Hi There,
You could potentially use the Get order data task along with the supported fields that can be used in a query. This will get you a list of orders that can be iterated over calling the cancel order action. There are details here about how to use “Get X data” tasks and looping. Note that a condition can be added before the cancel order action if there are more checks to do before cancelling the order.
Thanks!
Ryan