Workflow condition for particular file type
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
