Restrict multiple workflows on same payload | Community
Skip to main content
Level 2
October 1, 2020
Solved

Restrict multiple workflows on same payload

  • October 1, 2020
  • 3 replies
  • 2011 views

Hi,

In AEM touch ui, we can trigger multiple workflows on same page/payload. How can I restrict it to only one workflow.

I have tried with on click event on the create workflow button and try to find the payload in all available workflows in a servlet using the workflowsession.getAllWorkflows(), but the result of this method returns workflows triggered by the current user only.

So if any other user has triggered a workflow on the page it is not visible for the current user session from code.

Is there any way to find the workflow status for a page in sites.html window. 

AEM version 6.5.6-1

 

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 santhosh_kumark

Hi @tarunrajg ,

On click of create workflow , you can call js which check the workflow status.

Please follow below article hope it will be helpful.

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/prevent-multiple-workflow-on-same-payload-aem-6-4/qaq-p/267564

 

Regards,

Santosh

3 replies

santhosh_kumark
santhosh_kumarkAccepted solution
Level 6
October 1, 2020

Hi @tarunrajg ,

On click of create workflow , you can call js which check the workflow status.

Please follow below article hope it will be helpful.

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/prevent-multiple-workflow-on-same-payload-aem-6-4/qaq-p/267564

 

Regards,

Santosh

vanegi
Adobe Employee
Adobe Employee
October 5, 2020