Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Workflow to ask approval for deletion of dam assets

Avatar

Level 2

Hello all,

I have a requirement in which we need approval from administrators , if any author "deletes" (clicks on delete option) any dam asset from damadmin the request should go to admin/groups for approval.Then if the request is approved the dam asset should be deleted otherwise it should not be.

Kindly provide pointers on how to achieve this.

We tried this using Launcher, but the asset is already deleted by the time the workflow is started and then there is no path found exception .

Thanks,

Preeti

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Preeti,

You can implement similar use case by referring the below HELPX article:

Adobe Experience Manager Help | Invoking an Adobe Experience Manager Custom 6.4 Workflow from a web ...

Hope this helps!!

Thanks,

Ratna Kumar.

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

Hi Preeti,

You can implement similar use case by referring the below HELPX article:

Adobe Experience Manager Help | Invoking an Adobe Experience Manager Custom 6.4 Workflow from a web ...

Hope this helps!!

Thanks,

Ratna Kumar.

Avatar

Community Advisor

Hi Preeti,

Addition to Ratna's answer. You can implement this by doing below:

1. Hide Delete button from toolbar

2. Create delete Asset Workflow with Approval Reject Steps as suggested by Ratna. In this workflow add Process step to deactivate and delete assets in approval route after approval step.

Thanks

Arun



Arun Patidar

Avatar

Level 2

Hi Ratna,

Thanks for the quick help. Yes this article will help us in getting the approval and rejection from the admin.(2nd step of workflow)

But the issue we are facing right now is in the first step itself when we are clicking on delete button  for the dam assets.

The workflow is not getting triggered at all instead it is deleting the asset from there and in the inbox we are getting the message as

"The resource used to start this instance does not exist" . as we are using the Launcher on eventype "delete" for nodes of type nt:file.

So kindly let us know how do we trigger the  custom workflow on click of delete option.

1550614_pastedImage_0.png

Avatar

Level 10

You need to add a new button here and call the workflow. Should be no differrent from the example in the article - which is invoked from a web page.