Restrict multiple workflows on same payload

Avatar

Avatar
Level 1
tarunrajg
Level 1

Likes

0 likes

Total Posts

8 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
tarunrajg
Level 1

Likes

0 likes

Total Posts

8 posts

Correct reply

0 solutions
View profile
tarunrajg
Level 1

01-10-2020

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.

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
MVP
santhosh_kumark
MVP

Likes

99 likes

Total Posts

111 posts

Correct reply

38 solutions
Top badges earned
Establish
Validate 1
Give Back 3
Give Back
Boost 50
View profile

Avatar
Establish
MVP
santhosh_kumark
MVP

Likes

99 likes

Total Posts

111 posts

Correct reply

38 solutions
Top badges earned
Establish
Validate 1
Give Back 3
Give Back
Boost 50
View profile
santhosh_kumark
MVP

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

 

Regards,

Santosh

Answers (2)

Answers (2)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,314 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,314 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

01-10-2020

Avatar

Avatar
Give Back 5
Employee
vanegi
Employee

Likes

392 likes

Total Posts

378 posts

Correct reply

148 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile

Avatar
Give Back 5
Employee
vanegi
Employee

Likes

392 likes

Total Posts

378 posts

Correct reply

148 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile
vanegi
Employee

04-10-2020

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