Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Restrict multiple workflows on same payload

tarunrajg
Level 2
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.

 

AEM 6.5 AEM 6.5 workflows Workflow instance workflows
1 Accepted Solution
santhosh_kumark
Correct answer by
Community Advisor
Community Advisor

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
santhosh_kumark
Correct answer by
Community Advisor
Community Advisor

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