In workflow A (contact-based) I have an action that is sending the enrolled contact to workflow B. I would like to put in a delay in workflow A that waits until the contact has completed workflow B. Is this possible?
The current workflow event options in the “until event occurs” delay include achieved workflow goal, enrolled in workflow, and unenrolled from workflow, but I don’t think any of these are quite what I need. In my case, workflow B is a contact re-assignment workflow that contacts may re-enroll in at different points. So I can’t unenroll them or set a goal.
Is there another way to delay workflow A until the contact finishes executing the actions in workflow B?
Hi @danjo13,
Yes, when you add a delay, you can specify these options:
Alternatively, instead of having workflow A wait for B, simply have workflow B pass records to a workflow C and have C continue the work of workflow A (and bypass the delay entirely). I would typically choose that route because I find that delays until an event occurs can behave unreliably (edge cases with race conditions).
Best regards
Thank you for the response!
I did see the option to delay until the contact is unenrolled from a workflow. However, is completeing (just getting to the end of a workflow) counted as unenrollment? I was under the impression that unenrollment was if they are pulled out of the workflow without completing it, whether that’s manually unenrolling them, or they hit a suppression list, goal, etc. In this case, the contacts would just be completing workflow B as expected, not unenrolling. Or for this delay, does completing a workflow count as an unenrollment as well?
I see what you’re saying with adding a workflow C that is called from workflow B and continues what workflow A started, but I don’t think it would be the most effective method in this case. I simplified the example of workflow A, but there are actual multiple workflows with various triggers and actions that feed into workflow B. I think it would be hard to make sure they are fed back to the correct workflow after completeing workflow B.
@danjo13 in this case, I’d expect completion to be included in unenrollment – but it’s something that would have to be tested. Again, I’d personally stay away from this entirely due to the aforementioned race conditions. If enrollment and completion is B is just slightly too fast fast for A to record it properly, a record would be stuck in A.
If the A-B-C setup is not an option, you can also always simply set any property value in B, and have A wait for that change in value. If you make it a date property, it might even have value in some report.
Agreed on the race conditions, which is the exact issue for which I was hoping this would be an official and reliable solution. I do like your idea of the date property, I am going to give that a try. Thank you for your help!
Agreed on the race conditions, which is the exact issue for which I was hoping this would be an official and reliable solution. I do like your idea of the date property, I am going to give that a try. Thank you for your help!