Specifying arguments to UnarchiverProcess step | Community
Skip to main content
Level 2
May 28, 2020
Solved

Specifying arguments to UnarchiverProcess step

  • May 28, 2020
  • 2 replies
  • 10613 views

Hello All

 

I have created a new workflow and have added a "DAM Unarchiver Process"(com.day.cq.dam.core.process.UnarchiverProcess) step in it. The workflow works fine and does its job. E.g. when I upload a zip file, it extracts the contents by creating a new folder. However, I am not able to set additional arguments which it supports.

 

I want to set removeOriginal=true and updateMode=OVERWRITE. When I set these arguments from process step, those don't get applied. I tried following syntaxes to set the arguments but it never works. Is this an issue in this step? Please help.

  1. removeOriginal=true,updateMode=OVERWRITE
  2. removeOriginal:true,updateMode=OVERWRITE

I have even tried to run this workflow programmatically and tried to set the arguments in respective map(PROCESS_ARGS) but even that does not work

 

Thanks

Ganesh

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

Hi @gkkhatal,

Process arguments are comma separated pairs, where each pair consists of name and value separated by double colon.

In this case, can you try adding removeOriginal::true,updateMode::OVERWRITE

 

2 replies

Adobe Employee
May 28, 2020

What version of AEM ?

Can you check the logs and verify any relevant entries in the log ?

gkkhatalAuthor
Level 2
May 29, 2020
Hello @hamid1350, I am using AEM6.5. I have enabled debug logging and I am still seeing default arguments and not the provided arguments
Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
May 29, 2020

Hi @gkkhatal,

Process arguments are comma separated pairs, where each pair consists of name and value separated by double colon.

In this case, can you try adding removeOriginal::true,updateMode::OVERWRITE

 

Vijayalakshmi_S
Level 10
May 29, 2020

Hi @gkkhatal,

By the statement enabled debug logging, you mean DEBUG log level on this class - com.day.cq.dam.core.process.UnarchiverProcess and it is still returning same default update mode?

Also, would like to do another cross check -> In your original post, you mentioned that you tried triggering workflow programatically by setting the map values.

That is via,

wfData.getMetaDataMap().put("updateMode", "..");

wfData.getMetaDataMap().put("removeOriginal", "..");

wfSession.startWorkflow(model, wfData);

 

Trigger the WF programatically again and observe the runtime instance (/var/workflow/model/instances) workflow data - Cross check if this is set here.