Hi,
I have a workflow that I want to run on any assets created in a specific DAM folder, lets call it "data-folder".
I need this workflow to run after DamUpdateAsset.
I would prefer to do this without modifying the DamUpdateAsset model.
I need to do this with an AEM workflow launcher, and not an EventListener.
I've tried a few things but have not been able to trigger properly, once DamUpdateAsset finishes. Below are the things I've tried:
1) Setting the launcher to Node modified on data-folder, and condition dam:assetState == processed. This triggers my workflow multiple times, including on file delete. (bad)
2) Setting the launcher to Node created on data-folder. This triggers my workflow once, but it fails because DamUpdateAsset is still running. (bad) Perhaps there is a way to add a wait to the launcher?
3) I tried appending my workflow to the end of DamUpdateAsset but the payload given to it becomes the "original" rendition, and I'd rather not have to jump up to the parent programatically. Also, this requires modifying or copying DamUpdateAsset, and changing the way AEM is set up OOTB.
Any help here is appreciated. This seems like a simple issue but I'm not experienced with AEM enough to know what conditions to set.
Thanks!