Join a scenario path | Community
Skip to main content
New Participant
November 3, 2023
Solved

Join a scenario path

  • November 3, 2023
  • 1 reply
  • 1141 views

When I've used a router in Workfront Fusion, I often want to converge paths to run some common modules. 

Does anyone know a way how to do this? or something similar?

 

At the moment, I've put that section in separate scenario and called it via a WebHook. 

However, it seems like a really common thing to do an I'm surprise you can't make 2 modules merge paths somehow...?

 

Any help appreciated.

 

Rob

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 ChrisStephens

To make sure I understand, you're saying you have a router with two branches coming off of it, and then you want to bring the two branches back together?

 

If so, what I do is at the end of each of those branches, put a "Set multiple variables" module, and map whatever values you want to pass to your common path. Then, add a third path to your router, and the first module should be a "Get multiple variables" module, and map in all the variables from each branch, and then you can do your common processes.

1 reply

ChrisStephens
ChrisStephensAccepted solution
New Participant
November 3, 2023

To make sure I understand, you're saying you have a router with two branches coming off of it, and then you want to bring the two branches back together?

 

If so, what I do is at the end of each of those branches, put a "Set multiple variables" module, and map whatever values you want to pass to your common path. Then, add a third path to your router, and the first module should be a "Get multiple variables" module, and map in all the variables from each branch, and then you can do your common processes.

RobertDyAuthor
New Participant
November 3, 2023

Thank you @chrisstephens , yes this is exactly what I want to do. Your solution sounds really interesting. I found a help article with something similar to what you suggested: https://experienceleague.adobe.com/docs/workfront-learn/tutorials-workfront/fusion/exercises/set-get-variables.html?lang=en

 

So, the Get Variable waits for a variable to be set? I didn't realise this. Thank you! 

I'll do some more testing. 

 

Rob

ChrisStephens
New Participant
November 3, 2023

So it doesn't wait, but the way that Fusion runs is linear, and it will process rungs off the router in a top-down method, so as long as your common code is the last one to run, you will be good to go.

 

P.S. The order that rungs are attached to routers dictates their "height" position off the router, so make sure your common code is the last to attach.