You are viewing limited content. For full access, please sign in.

Question

Question

Multiple Set Business Process Variables in a Workflow

asked on June 19, 2017 Show version history

I have a workflow that is started by forms and then returns back to the same form process.  

 

I'm trying to set business process variables based on the results of a conditional routing event.  Anytime that I run the workflow, only the very last "Set Business Process Variable" actually gets set.  Workflow indicates that the other applicable "Set Business Process Variable" events are occurring, but none of them are starting on my form process.  I've tried reversing the events that occurs, and only the very bottom "Set Business Process Variable" occurs.

 

Is this the nature of the Set Business Process Variable task, where only the very last one in the process actually occurs? Am I going to have to create 32 branches of conditional routing to make this work?

 

Here is my workflow, in case seeing it visually helps people understand what I'm trying to illustrate.  I'm using 10.2.1 for what its worth.

 

Edit: The add, remove, and name change trees all function just like the transfer tree.

 

0 0

Answer

SELECTED ANSWER
replied on June 19, 2017

Set Business Processes Variables only run once when the instance completes.

1 0
replied on June 19, 2017

Its like I thought.  Looks like I'll need to rework my workflow.  

 

Thanks!

0 0
replied on June 19, 2017

You don't have to create parallel branches for all conditions. You can collect the responses in each branch as tokens and run a Set BP Variables at the end with all the fields.

2 0
replied on June 19, 2017

Thank you.  That certainly is a better idea.

0 0

Replies

replied on May 8, 2019

Wow, I was losing my mind here. I had multiple set business process variables in a workflow that were all setting different variables and succeeding without warning, but the variables in forms were empty. Then I found this post. Super confusing!

0 0
replied on November 23, 2020

Would be useful if we could dynamically pick which fields we want to set since we can't have more than one set business process variables. If we use a token for the variable name, it says it can not be resolved.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.