Uploading huge files to publisher and reverse replicating to author and running workflows in author
I have a requirement to upload the files in publisher and reverse replicate to author and forward replicate to another publisher. After reverse replicating, I need to create a project in AEM author and move the reverse replicated assets to a project-specific location. So I have a custom launcher to call my workflow class(which will create a project and copy the assets to the given location and delete them).
There is a problem with this, I'm trying to avoid the race condition. The project is created and moves the asset whatever available when the launcher triggers but all the assets haven't reverse replicated yet. Is there a way to wait until the complete reverse replication is done or any condition to write at the launcher level or some job consumer something. I have a launcher at /content/vendor. I have enough info to create a project after creating data node. But I need all the files to be moved to a project-specific location. Appreciate your help. Thanks. Attaching the structure of the files as a screenshot
