Launcher should not get executed on Asset deletion | Community
Skip to main content
September 7, 2017
Solved

Launcher should not get executed on Asset deletion

  • September 7, 2017
  • 1 reply
  • 1148 views

I have a custom workflow for generating Image renditions. It should be triggered for image upload, image edit, image replace. Event Type for the launcher is Modified type. The workflow has a gatekeeper process in the beginning followed by custom workflow process.

On deleting an asset, getting error :

Caused by: com.day.cq.workflow.WorkflowException: execute: gatekeeping failed, asset [{/content/dam/demo/images/test2/image2.jpg}] in payload doesn't exist for workflow

I don't want the workflow to be triggered for deleting asset. There has to be some condition in the WF launcher to handle this issue.

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 viveksachdeva

aem - CQ5 modify event fired on page delete - Stack Overflow  This has explanation on why modified event is called on deletion.

I think you can extend the Gatekeeper process to handle resource asset deletion.

1 reply

viveksachdeva
Community Advisor
viveksachdevaCommunity AdvisorAccepted solution
Community Advisor
September 7, 2017

aem - CQ5 modify event fired on page delete - Stack Overflow  This has explanation on why modified event is called on deletion.

I think you can extend the Gatekeeper process to handle resource asset deletion.