AEM Workflow called on click on publish Asset

Avatar

Avatar
Applaud 5
Level 1
chetan001
Level 1

Likes

0 likes

Total Posts

14 posts

Correct reply

0 solutions
Top badges earned
Applaud 5
View profile

Avatar
Applaud 5
Level 1
chetan001
Level 1

Likes

0 likes

Total Posts

14 posts

Correct reply

0 solutions
Top badges earned
Applaud 5
View profile
chetan001
Level 1

16-07-2021

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 ?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 25
Level 5
Bimmi_Soi
Level 5

Likes

73 likes

Total Posts

81 posts

Correct reply

26 solutions
Top badges earned
Affirm 25
Contributor
Applaud 5
Boost 50
Ignite 1
View profile

Avatar
Affirm 25
Level 5
Bimmi_Soi
Level 5

Likes

73 likes

Total Posts

81 posts

Correct reply

26 solutions
Top badges earned
Affirm 25
Contributor
Applaud 5
Boost 50
Ignite 1
View profile
Bimmi_Soi
Level 5

16-07-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

Answers (0)