replied on August 30, 2016
It is easier to approach this from a different direction. Rather than getting all documents and figuring out if a document is old enough, you want to start off by finding all documents older than 8 years. That way, you reduce the number of documents your workflow has to process.
So you want to start off with a Search Repository activity. You can run the search first from the Laserfiche Client and make sure you have the right search syntax (and documents). You can start off by searching for documents 8 years before today's date.
Then you can iterate through the search results with For Each Entry and delete them, no check is needed since the search does it for you.
At this point, you'll have a running workflow that deletes all documents created before 8 years ago today.
You can now extended it to run daily (with a scheduled starting rule) and check for documents that have aged out and need to be deleted. For this, you would have to add a Date Token Calculator activity and have it calculate 8 years before the current date (using the %(Date) token). Then you would want to modify the Search Repository's search query to use the token generated by Date Toke Calculator in its search instead of the hardcoded date from above.