Expand my Community achievements bar.

SOLVED

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

Avatar

Level 4

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 

dillipJ98390536_0-1706100293438.png

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

 

 

Thanks,

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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/extend...

 

 

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...

 

Thanks.

 

 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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/extend...

 

 

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...

 

Thanks.