Custom Trigger or Time Based Trigger



I was just wondering if it’s possible to create your own custom triggers to have inside the monitorEvents activity or if there’s already an activity that is able to track time?
I’m currently using a state Machine and one of the states is to wait for a file to be put into a folder, which I am using the FileChangeTrigger for, but if nothing gets entered by a certain time, I want the file to finish. Currently, I have it set up so that if it is after a certain time, it will finish, but the problem is that the process gets stuck in the monitorEvents activity since it never actually gets triggered.

Is there a way around it?