Workflow Activity Execution Order | Community
Skip to main content
Zamwize
May 23, 2022
Solved

Workflow Activity Execution Order

  • May 23, 2022
  • 3 replies
  • 1997 views

If I have 5 query activities each pushing to their own Update List activities, in what order do those process?

  • Most recently added first?
  • Most recently updated first?
  • Other?

Can we manipulate the order in which Workflow Activities execute?

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 costa_n11

Hi @zamwize 

 

Sadly I don’t think you can force a specific order to execute things. If for instance you have a Fork activity with x branches with one query in each branches, the query activities are executed sequentially and once the query in a branch is executed, the next activity will be executed while the 2nd query in your Fork branch will be executed. The only way I can think to force the sequence in a specific order is maybe by introducing an AND activity after the 1st query who will join with the transition of query one and branch 2 then do a fork of 2 branches: one to update while the 2nd one will be the 2nd query. And you repeat the process until all your queries are executed. It makes the workflow very complex and cumbersome to maintain. 

Question on my side: why is the order important? Do you have an update from one query that depends from the result of another query ? Trying to understand importance of the order. 
thans

Denis. 

3 replies

costa_n11Adobe EmployeeAccepted solution
Adobe Employee
May 23, 2022

Hi @zamwize 

 

Sadly I don’t think you can force a specific order to execute things. If for instance you have a Fork activity with x branches with one query in each branches, the query activities are executed sequentially and once the query in a branch is executed, the next activity will be executed while the 2nd query in your Fork branch will be executed. The only way I can think to force the sequence in a specific order is maybe by introducing an AND activity after the 1st query who will join with the transition of query one and branch 2 then do a fork of 2 branches: one to update while the 2nd one will be the 2nd query. And you repeat the process until all your queries are executed. It makes the workflow very complex and cumbersome to maintain. 

Question on my side: why is the order important? Do you have an update from one query that depends from the result of another query ? Trying to understand importance of the order. 
thans

Denis. 

Zamwize
ZamwizeAuthor
August 3, 2022

Thank you @costa_n11!

 

The And function seems to working as you guessed.

 

The order is important due to the scheduling of workflow executions leveraging lists as exclusions. We use lists for our more complex exclusion blocks that take far to long to run as a PDF when it's run 30 times a day.

Amine_Abedour
Community Advisor
Community Advisor
May 24, 2022

Hello @zamwize,

 

You can 'trick' Adobe by adding empty Js activities like this to manipulate the order: 

 

 

result: 

 

 

Br,

 

 

Amine ABEDOUR
Zamwize
ZamwizeAuthor
August 3, 2022

Thank you, @amine_abedour!

 

This also seems to work, although the number of JS activities on the page could get cumbersome.

Sukrity_Wadhwa
Community Manager
Community Manager
June 15, 2022

Hi @zamwize,

Were you able to resolve this query with the help of the given solutions or do you still need more help here? Do let us know. In case the given solutions were helpful, then kindly choose the one that helped you the most as the 'Correct Reply'.
Thanks!

Sukrity Wadhwa