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

Specifying arguments to UnarchiverProcess step

  • May 28, 2020
  • 2 replies
  • 10600 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
May 29, 2020
29.05.2020 17:39:01.265 *INFO* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess scan: scanning archive [/content/dam/ey/migration/Behavior.zip] and verifying configured limits 29.05.2020 17:39:01.265 *INFO* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess scan: configured limits: max bytes [104857600], max files [10000], max files per dir [100] 29.05.2020 17:39:01.265 *DEBUG* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess scan: scanned entry [Behavior.xml] - [2275] bytes - folder:[./ - 1 - 100] 29.05.2020 17:39:01.265 *DEBUG* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess scan: scanned entry [country.xml] - [47321] bytes - folder:[./ - 2 - 100] 29.05.2020 17:39:01.266 *INFO* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess scan: scan of archive [/content/dam/ey/migration/Behavior.zip] completed. archive is within configured limits. 29.05.2020 17:39:01.266 *INFO* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess scan: archive [/content/dam/ey/migration/Behavior.zip] will result in [2] extracted files with a total of [49596] bytes. 29.05.2020 17:39:01.266 *DEBUG* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess execute: calling beforeExtract for [/content/dam/ey/migration/Behavior.zip] 29.05.2020 17:39:01.266 *INFO* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess extract: begin extraction of archive [/content/dam/ey/migration/Behavior.zip] - update mode [NEW] 29.05.2020 17:39:01.266 *DEBUG* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess extract: update mode is [NEW], creating unique folder... 29.05.2020 17:39:01.266 *DEBUG* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess extract: created extraction folder at [/content/dam/ey/migration/behavior0] for [/content/dam/ey/migration/Behavior.zip] 29.05.2020 17:39:01.266 *DEBUG* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess extractEntry: extracting entry [Behavior.xml] in archive [/content/dam/ey/migration/Behavior.zip] 29.05.2020 17:39:01.268 *DEBUG* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess extractEntry: created temporary file at [C:\Windows\TEMP\unarchiver-file-1590754141266733201109348783775.tmp] 29.05.2020 17:39:01.270 *DEBUG* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess extractEntry: got SHA-1 [74b40387c31f50e12c374a5cc4fd81e93cf890ad] for entry [Behavior.xml] 29.05.2020 17:39:01.271 *INFO* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess extractEntry: created new asset [/content/dam/ey/migration/behavior0/Behavior.xml] from entry [Behavior.xml] 29.05.2020 17:39:01.272 *DEBUG* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess extractEntry: deleted temporary file at [C:\Windows\TEMP\unarchiver-file-1590754141266733201109348783775.tmp] 29.05.2020 17:39:01.272 *DEBUG* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess extractEntry: extracting entry [country.xml] in archive [/content/dam/ey/migration/Behavior.zip] 29.05.2020 17:39:01.273 *DEBUG* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess extractEntry: created temporary file at [C:\Windows\TEMP\unarchiver-file-15907541412723966630415008638870.tmp] 29.05.2020 17:39:01.276 *DEBUG* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess extractEntry: got SHA-1 [d862f769e30a8ed7367e87f8a1c817673edf38d4] for entry [country.xml] 29.05.2020 17:39:01.291 *INFO* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess extractEntry: created new asset [/content/dam/ey/migration/behavior0/country.xml] from entry [country.xml] 29.05.2020 17:39:01.292 *DEBUG* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess extractEntry: deleted temporary file at [C:\Windows\TEMP\unarchiver-file-15907541412723966630415008638870.tmp] 29.05.2020 17:39:01.292 *INFO* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess extract: extraction of archive [/content/dam/ey/migration/Behavior.zip] successfully completed. 29.05.2020 17:39:01.292 *DEBUG* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip] com.day.cq.dam.core.process.UnarchiverProcess execute: calling afterExtract for [/content/dam/ey/migration/Behavior.zip] (extraction successful) 29.05.2020 17:39:01.292 *INFO* [JobHandler: /var/workflow/instances/server0/2020-05-18/unzip-metadata-zip_565:/content/dam/ey/migration/Behavior.zip]
Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
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

 

gkkhatalAuthor
May 29, 2020
Thanks for your response. I tried this but still its taking the default arguments and not the provided arguments 😞