How to create a workflow process which can be configured in dam update asset workflow.
When i uploaded a image into dam, that workflow should get called and it should create images with different dimensions and ratios.
Views
Replies
Total Likes
HI @MamathaR1
You may need to use workflow launcher.
We had the exact requirement in the past and we achieved using Launcher
Workflow Launcher
<?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=""
conditions="[jcr:content/renditions/original/jcr:content/jcr:mimeType==image/.*]"
description="Create Custom Renditions & Ratios for the Images"
disabledFeatures="[]"
enabled="{Boolean}true"
eventType="{Long}1"
excludeList=""
features="[]"
glob="/content/dam/myproj"
nodetype="dam:Asset"
runModes="author"
workflow="/var/workflow/models/myproj-dam-update-asset"/>
Workflow Model : process step
<process_1
jcr:description=" Create Ratios for the uploaded asset."
jcr:primaryType="nt:unstructured"
jcr:title="Create Ratios"
sling:resourceType="cq/workflow/components/model/process">
<metaData
jcr:primaryType="nt:unstructured"
PROCESS="com.myproj.core.workflow.CreateRatios"
PROCESS_ARGS=".16-9,.3-2,.5-3,.2-1"
PROCESS_AUTO_ADVANCE="true"/>
</process_1>
Views
Replies
Total Likes
Views
Replies
Total Likes
HI @MamathaR1
Please check https://medium.com/@toimrank/aem-custom-workflow-process-step-56e176f8f067
Views
Replies
Total Likes
Views
Likes
Replies