My problem seems to be very basic but it is driving me crazy. I have a simple workflow with an argument which is used for a if condition. If the condition is met then this very same argument is changed with another value (that’s why it is an in/out argument).
The problem is that the value entering the workflow (in) remains the same when exiting the workflow (out) but it should have been changed because the if condition is met.
Using the debug mode, I can clearly see that the if condition is met and the argument is properly set to the new value. But at the very end of the workflow the argument goes back to the in value.
I have already double checked that I don’t have any other argument/variable with the same name.
Here are some screenshots where you will see the arguments changing throughout the workflow.
The argument io_Grp3 (in value) contains the code FCT, which allows to meet the if condition.
Thus this very same argument is changed to WLC. As you can see in the screenshot it is working (even until the Click “Button Continue (enter)” activity).
Could you pls check do you have any default value set in the arguments panel. if we have any default value then in that case we will get the same value as output. share us the screenshot of the arguments panel. thanks.
I know this might sound dumb… but at times, Because it happened with me i have created the same variable but the scope was just one level and I was not able to pinpoint to it. later realized what actually happened… If you can give it a look.
it is possible from my side i am able to enter default value in the in/out argument. please refer the below screenshot. the correct way to store is we have to use string variable it will hold the dynamic output. And also please check whether you are using correct Direction-> in/out . thanks.
Yes, I have checked in every part of my sequence to make sure it is not “hidden” by the scope.
And again, I have replicated the sequence in a new workflow, from scratch, with new arguments and variables and making sure I have created them just once, and it is still not working.
ok there is no issues till now. but some thing is missing that is creating pain. one last thought from my side. the variable io_Grp3 you are assigning into this argument has any default value pls check. thanks
Well, I have been able to find a solution to make this step work, although it doesn’t fix my issue.
I am going to remove the workflow which makes me having the issue and place the sequence in the above layer. It seems to work even though it’s not how I exactly wanted to handle this part of the process.
If you guys have any solution, I would still enjoy reading it
Like I said before, One of the arguments you are using is Out and not in/out, and out can not be overloaded as in/out argument. Change it either to in/out or store it to a variable.
I am attaching a ref project. Change argument type of XAML Flowchart to out and in/out and do two different runs and you will see the difference.