Hello Experts !
I need an urgent help in making some change for workflow. We are using out of box "DAM Update Asset Workflow" for all file type and need to initiate a separate workflow for "ZIP Workflow" for zip file format.
I tried setting up condition to check the mime type to kick off this workflow and for rest all other format default workflow.
<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="cq:WorkflowLauncher" condition="jcr:content/jcr:mimeType==application/zip" description="" enabled="{Boolean}false" eventType="{Long}16" excludeList="" glob="/content/dam(/.*/)renditions/original" nodetype="nt:file" runModes="author" workflow="/etc/workflow/models/dam-update-asset-workflow-zip/jcr:content/model"/>
<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="cq:WorkflowLauncher" condition="jcr:content/jcr:mimeType!=application/zip" description="" enabled="{Boolean}false" eventType="{Long}16" excludeList="" glob="/content/dam(/.*/)renditions/original" nodetype="nt:file" runModes="author" workflow="/etc/workflow/models/dam-update-asset-workflow/jcr:content/model"/>
But above launcher configs are not getting picked up. On further root cause analysis, i found that jcr:content/jcr:mimeType is not appearing at all for any file format.
Please suggest, how can i achieve that. If somehow i can put a condition logic to pick up files having extension "*.zip" from name and initiate this workflow.
I am using AEM 6.1 version.
Regards,
T
Solved! Go to Solution.
Views
Replies
Total Likes
Hi
As mentioned by Lee,
Use :- glob: /content/dam(/.*/)renditions/original(/.*\.zip)
If you want other extension as well, then use:- /content/dam(/.*/)renditions/original(/.*\.(jpg|JPG|gif|GIF|doc|DOC|pdf|PDF))
Documentation Link:- https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/adobe/granite/workflow/launcher/ConfigEntry.html
//glob - the path pattern, can be regexp, where the event should be watching
I hope this would help you.
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
Maybe try something like this for the glob:
/content/dam(/.*/)renditions/original(/.*\.zip)
Views
Replies
Total Likes
Hi
As mentioned by Lee,
Use :- glob: /content/dam(/.*/)renditions/original(/.*\.zip)
If you want other extension as well, then use:- /content/dam(/.*/)renditions/original(/.*\.(jpg|JPG|gif|GIF|doc|DOC|pdf|PDF))
Documentation Link:- https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/adobe/granite/workflow/launcher/ConfigEntry.html
//glob - the path pattern, can be regexp, where the event should be watching
I hope this would help you.
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies