-
Bug
-
Resolution: Not a bug
-
Low
-
1
-
Severity 3 - Minor
-
Issue Summary
Any variable outside branch (before) is required to access the value of any variable created inside a branch after the branch execution ended.
Steps to Reproduce
- Create a variable inside the branch
- Access the value outside the branch. It's only accessible if any other variable was created before the branch even if it's not used.
Expected Results
Either no variable should be required before the branch, or it should be the same variable that requires to be created before the branch (global context)
Actual Results
If no variable is created before the branch then the variables created inside the branch context cannot be used outside the branch.
Workaround
create any variable before the branch
I am not sure what you mean by "parentvalue" in this context. The problem here is that any variables created inside the branch (or editing a variable previously declared outside the branch) do not reflect those changes in the rest of the rule after the branch component, except for one special case.
The one special case is if you declare any variable before the branch component, ONE branch execution will have its variable changes reflected in the rest of the rule. This branch is the first branch executed.
There are a bunch of technical reasons for this edge case, but this is not behaviour we would want customers relying on, as it is not intended user experience. We are in the process of looking at alternatives to fix this in a non-invasive way.
Cheers
Sam