...
- Create a new Workflow Model
http://localhost:4502/libs/cq/workflow/admin/console/content/models.html - Remove all predefined steps from the workflow model
- Add a new "Workflow / Process Step" component
- Select "wcm.io Media Handler: Rendition Metadata" as process
- Activate the "Handler Advance" checkbox
- In the properties of the workflow, activate the "Multi Resource Support" checkbox
- "Synch" the workflow model
- Create a new workflow package page (using the Classic UI, seems not yet supported in the Touch UI)
http://localhost:4502/miscadmin#/etc/workflow/packages Add a new "Resource Definition" node for each AEM asset folder you want to process, and select the folder path in the properties dialog (e.g.
/content/dam/myproject
)Note Please note: You have to add at least to two resource definition nodes, otherwise it will only work if you selected an asset. Processing of all assets inside a folder including the subfolders works only if you have added at least two resource definition entries (even if they point to the same folder!). The reason for this is a strange special case handling in the AEM workflow resource collection implementation.
- You now have to go to CRX DE Lite to manually change the filter rules of the two or more resource definition nodes you just entered via the UI (this is unfortunately not possible in the UI itself)
- Within the workflow package page (below
/etc/workflow/packages
or/var/workflow/packages
) go to thejcr:content/vlt:definition/filter
node. - For each child node that references your asset folder(s) in the
root
property, remove therules
string array property, or change it in a way so it processed all assets in the folder and not only the folder itself.
- Within the workflow package page (below
- Go back to the UI of the workflow package editor
In the Sidekick, select the "Worklow" tab, and select and start the workflow you created in step 1
Info If you want to see what's going on set a loglevel to INFO for the category
io.wcm.handler.mediasource.dam.impl.metadata
...