Expand my Community achievements bar.

DAM workflow

Avatar

Level 1

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. 

3 Replies

Avatar

Community Advisor

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

Avatar

Level 1

Hi @arunpatidar 

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