Is there a way to end the "wait for item update" if the condition you're waiting for never occurs? Or does the workflow just show "in progress" forever?
There's no time limit at which the workflow will give up, if for example the workflow is waiting for field1 to have a value of 10 and the field never has the value of 10 the workflow will wait forever.
If possible, don't use "Wait for item update" action in this scenario.
Try following options.
Instead, look at putting together a Loop action that checks for changes to that field and inside the Loop, you can have the Pause for action.
So it will loop, while the fields is unchanged. Store the value of the field before the loop starts, and configured the Loop to then compare the variable to the current field value. Here you can put your condition to stop the workflow.
Create parallel actions, one waiting for the date, the other waiting for an item update. The key to that workflow though, was to design it so both of the parallel actions end the workflow once the condition was met. As you may know, with parallel actions the workflow will not continue until both actions have completed, so you have to add the 'End Workflow' action to both in order to move on.
Let me know if any issues, I will try and create POC for you.
I can't really do the "loop" because it loops every 5 minutes and the length of time for this workflow to run could be months and months. So, the research on this site indicated a loop (every 5 minutes) might not work too well due to server resources.
I will definitely try the parallel actions with the two "wait for" conditions and see if that works. I had posted a question about sequential "wait for" events, Wait for Item Update - more than one in a sequence , don't know if that will work.
I did try a separate workflow that was supposed to end the other workflow with the "wait for" but that didn't work. And, for some reason, in a site workflow, you cannot end a "list" workflow. Don't know why.
Thank you so much for your help. I'll post the results here.
I think the two parallel actions are working The first one, which is a "wait for item update" works. The second, which is a pause until the "fix due date" equals Workflow Constant "Current Date" seems to be working as well. I'll do some more testing today.
Retrieving data ...