AEM Workflow called on click on publish Asset | Community
Skip to main content
chetan001
Level 3
July 16, 2021
Solved

AEM Workflow called on click on publish Asset

  • July 16, 2021
  • 1 reply
  • 1778 views

Hi ,

 

I am  able to initiate the workflow on click on publish of asset but my asset get published first then workflow get started.

 

I tried with these two approach to control publish event.

 

  1. Created workflow launcher
  2. Created custom event handler

 

Both are having same problem asset are publishing first then workflow get started .

 

As per requirement when author click on publish  asset, approval workflow should triggered then asset should publish.

 

Question: can we control asset publish event ?

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 BimmiSo

Hi @chetan001 ,

 

On click of publish , OOTB publish workflow gets triggered. I had the same case where I triggered my workflow on click of manage publication.

 

You can refer the below blog where I have done that. 

 

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

 

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

 

Hope this helps!

 

Thanks

1 reply

BimmiSoAdobe EmployeeAccepted solution
Adobe Employee
July 16, 2021

Hi @chetan001 ,

 

On click of publish , OOTB publish workflow gets triggered. I had the same case where I triggered my workflow on click of manage publication.

 

You can refer the below blog where I have done that. 

 

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

 

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

 

Hope this helps!

 

Thanks

chetan001
chetan001Author
Level 3
July 16, 2021
Thanks @bimmiso for this information, I have configured same as doc but still custom workflow not getting called on publish click. do i need to refresh any bundle ?