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.