Workflow trigger on publish of an asset | Community
Skip to main content
Level 3
Apr 18, 2022 2:27 PM UTC
Solved

Workflow trigger on publish of an asset

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.
DEBAL_DAS
DEBAL_DASAccepted solution
New Participant
Apr 19, 2022 5:19 AM UTC

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.

5 replies

DEBAL_DAS
DEBAL_DASAccepted solution
New Participant
Apr 19, 2022 5:19 AM UTC

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.

Translate
Level 3
Apr 19, 2022 5:24 AM UTC

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

Translate
ManviSharma
Employee
Apr 18, 2022 4:53 PM UTC

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

Translate
Nitin_laad
New Participant
Apr 18, 2022 3:05 PM UTC

@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

 

Translate