Sample Job:
I have 1 job variable and grid variable with 'Copied' behavior, once it is updated with some new values ,it prints updated values . But after any 'Or'/'And' flow, it is showing the default values
Log:
Sample Job:
I have 1 job variable and grid variable with 'Copied' behavior, once it is updated with some new values ,it prints updated values . But after any 'Or'/'And' flow, it is showing the default values
Log:
Sounds like a bug to me. I think you should open a support ticket.
My expectation would be that the components after AND and OR also print "updated value".
Check out the documentation on the And/Or components. They both mention that they reset "Copied" variables to the default value. If you change your Grid Variable type to "Shared" it will correct your issue
"Any copied variables that exist in the workflow when going through the Or component will be reset to the values they held at the beginning of the job, unless the current job is being called from another job—in which case, the variable in question will be reset to its default value. This is to prevent the need to resolve two potentially different values of a copied variable when two parallel workflows meet the Or component. If this is not the case for your workflow, consider instead using the value of the copied variable to update a shared variable prior to the Or."
@jeb , thanks for pointing me to the docs. Classic RTFM fail. Sorry for that.
I still think this is not very intuitive and most people would not expect this behaviour.
Thanks @jeb
Agreed! I actually ran into this same thing a few weeks ago. It took me several hours of troubleshooting till I found that blurb in the docs and realized I needed to just switch the variable types.