anybody knows a way to detect when a backend work flow ends ? I think that my case can be very common.
During the initial set-up of my app (new user signing up and creating a company) I need to populate some company specific data taking the content from some generic “default data” and then relate them in a specific way.
Let’s say that I need to create 3 things company specific. I run 3 workflows on a list that read the “default data” and create the company specific things (it’s like duplicate the default data in new things with a filed referenced to current company).
Then the I have to write the relations between the 3 things newly created. But before running any other workflow I must be 100% sure that all the 3 things have been completed.
How is it possible to detect when the wf on a list completed all its tasks ?
For instance, in server logs (advanced search) you can show the “Scheduled task completed” info. But it seems that this is not a condition you can reach in any other way in the workflow itself.
As a workaround I made the following workflows wait a reasonable time (let’s say 30 seconds) in order to be almost sure that, when these workflows (with the cross reference logics) will run, all the data they refer to are already there. But this is not 100% reliable.
Best thing would be of course being able to force workflow to run in a specific sequence. But since alle the wfs run in parallel, any idea how to manage this situation ?