Expand my Community achievements bar.

Adobe Summit is live! Tune in to take part in the premier digital experience event.
SOLVED

Restrict multiple workflows on same payload

Avatar

Level 2

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.

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 7

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

 

Regards,

Santosh

View solution in original post

3 Replies

Avatar

Correct answer by
Level 7

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

 

Regards,

Santosh

Avatar

Community Advisor

Avatar

Employee

Please check this https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/restricting-a-page-to-be-s...

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/multiple-workflow-instance...

 

"You cannot restrict to one workflow in Touch UI you need to use classic UI. if you still want to use Touch UI you need to write a custom script."