Workflow trigger on publish of an asset | Community
Skip to main content
Level 3
April 18, 2022
Solved

Workflow trigger on publish of an asset

  • April 18, 2022
  • 4 replies
  • 2350 views

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 ? 

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 DEBAL_DAS

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

Then please refer approach as @nitin_laad has suggested.

 

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

Then you can follow @bhuwan_b and @manvisharma here.

4 replies

Nitin_laad
Community Advisor
Community Advisor
April 18, 2022

@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

 

ManviSharma
Adobe Employee
Adobe Employee
April 18, 2022

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

DEBAL_DAS
DEBAL_DASAccepted solution
New Member
April 19, 2022

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

Then please refer approach as @nitin_laad has suggested.

 

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

Then you can follow @bhuwan_b and @manvisharma here.

Debal Das, Senior AEM Consultant
Level 3
April 19, 2022

Hi @debal_das @nitin_laad  @bhuwan_b @manvisharma  thanks for your inputs. will try and come back. thanks