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 trigger on publish of an asset

Avatar

Level 4

We want to trigger a workflow (for custom requirement) on publish of an asset. Workflow launcher, we have option to launch a workflow an event created/modified/remove. But does not meet our specific requirement. Want to trigger workflow only when publish of an asset happens ?.

 

Thinking to handle this via Sling handler on property changed. Any thoughts here ? 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

1. If you are planning to publishing first using Quick Publish as shown below and then you want trigger the custom workflow -

DEBAL_DAS_0-1650344926992.png

Then please refer approach as @Nitin_laad has suggested.

 

2. If you are planning to manage via Manage Publication as shown below -

DEBAL_DAS_1-1650345485158.png

Then you can follow @Bhuwan_B and @ManviSharma here.

View solution in original post

5 Replies

Avatar

Community Advisor

@pradeepmoolemane You can achieve it using Launcher configuration -

1. Create a worflow using your custom step

2. Define a launcher and invoke it  when condition --> "jcr:content/cq:lastReplicationAction==Activate" on /content/dam/test path and type=dam:Asset

Nitin_laad_0-1650294245162.png

 

Avatar

Employee Advisor

You need to create a custom workflow, where get your work done and then publish the asset.

 

Please refer to [1]

 

[1] https://bimmisoi.blogspot.com/2020/07/aem-trigger-customized-workflow-on.html

Avatar

Correct answer by
Employee Advisor

1. If you are planning to publishing first using Quick Publish as shown below and then you want trigger the custom workflow -

DEBAL_DAS_0-1650344926992.png

Then please refer approach as @Nitin_laad has suggested.

 

2. If you are planning to manage via Manage Publication as shown below -

DEBAL_DAS_1-1650345485158.png

Then you can follow @Bhuwan_B and @ManviSharma here.