Can restrict triggering a workflow if already an instance is running | Community
Skip to main content
saibul
New Participant
October 27, 2020
Solved

Can restrict triggering a workflow if already an instance is running

  • October 27, 2020
  • 1 reply
  • 1134 views

Server: AEM 6.5.5

 

We have a requirement like triggering a custom workflow  programmatically on scheduled basis at the same time the scheduler should not trigger a new workflow instance until the existing instance is complete or terminated. Do we have any config or property to manage this or we need to maintain some configs on our own.

 

Appreciate your suggestions.

 

 

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 vanegi

@saibul,

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. The restriction we see in the Classic UI is at the UI level. So Classic has it and Touch UI does not. As far as the AEM Workflow engine is concerned - it can have the same page as payloads in multiple workflows. Hope this clears it up.

 

Please have a look at below threads for more clarification and several alternative approaches we can take:

 

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

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/restricting-a-page-to-be-subjected-to-workflow-only-once-at-a/m-p/250086

 

Thanks!!

 

1 reply

vanegi
vanegiAccepted solution
Employee
October 27, 2020

@saibul,

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. The restriction we see in the Classic UI is at the UI level. So Classic has it and Touch UI does not. As far as the AEM Workflow engine is concerned - it can have the same page as payloads in multiple workflows. Hope this clears it up.

 

Please have a look at below threads for more clarification and several alternative approaches we can take:

 

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

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/restricting-a-page-to-be-subjected-to-workflow-only-once-at-a/m-p/250086

 

Thanks!!

 

saibul
saibulAuthor
New Participant
November 1, 2020
Thanks vanegi