calling a workflow on creating of a new version of document like map,topic | Community
Skip to main content
djohn98390536
Level 4
January 24, 2024
Solved

calling a workflow on creating of a new version of document like map,topic

  • January 24, 2024
  • 1 reply
  • 708 views

Is there any way to call a workflow on only creation of a new version of a document like map,topic in AEM guides.

please find the below 

onclick of this highlighted button save as new version button a workflow should trigger.

 

 

Thanks,

 

 

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 Anmol_Bhardwaj

Hey @djohn98390536 ,

 

Yes.

You can setup a servlet call on the click of this button, and then programmatically run the workflow from your code.

Interacting with Workflows Programmatically

 https://experienceleague.adobe.com/docs/experience-manager-65/content/implementing/developing/extending-aem/extending-workflows/workflows-program-interaction.html?lang=en

 

 

It might also be worthwhile to look at workflow launcher.

 

Workflows Launchers

The Workflow Launcher monitors changes in the content repository to launch workflows dependent on the location and resource type of the changed node.

 

Workflows Launchers

https://experienceleague.adobe.com/docs/experience-manager-65/content/sites/administering/operations/workflows-starting.html?lang=en#workflows-launchers

 

Thanks.

 

 

1 reply

Anmol_Bhardwaj
Community Advisor
Anmol_BhardwajCommunity AdvisorAccepted solution
Community Advisor
January 24, 2024

Hey @djohn98390536 ,

 

Yes.

You can setup a servlet call on the click of this button, and then programmatically run the workflow from your code.

Interacting with Workflows Programmatically

 https://experienceleague.adobe.com/docs/experience-manager-65/content/implementing/developing/extending-aem/extending-workflows/workflows-program-interaction.html?lang=en

 

 

It might also be worthwhile to look at workflow launcher.

 

Workflows Launchers

The Workflow Launcher monitors changes in the content repository to launch workflows dependent on the location and resource type of the changed node.

 

Workflows Launchers

https://experienceleague.adobe.com/docs/experience-manager-65/content/sites/administering/operations/workflows-starting.html?lang=en#workflows-launchers

 

Thanks.