Hey,
I am not sure why you need two watches here. Let me lay out my idea (which of course may have flaws).
- Create a watch with a chained input. First one getting the document that stores the state of the execution (either a get or a search by _uid), second input is doing your actually search work.
- condition might be not needed at all
- define two actions. First one is triggering your regular alert, second one is writing back into the state document with the current value. Every action can have its own condition, so you can only trigger the alert if a certain condition is met, but you could always write the state if needed.
Hope this helps a bit!
--Alex