DAM workflow | Community
Skip to main content
March 20, 2024
Question

DAM workflow

  • March 20, 2024
  • 1 reply
  • 668 views

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. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

arunpatidar
Community Advisor
Community Advisor
March 20, 2024

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 &amp; 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>

 

Arun Patidar
MamathaR1Author
March 21, 2024

Hi @arunpatidar 

How can I create this process step in model, can you please tell me that.

 

arunpatidar
Community Advisor
Community Advisor
March 21, 2024