Use the following guidelines when you use in-out parameters in a taskflow:
If you define a field to override the same parameter in both the Assignment step and the Data Task step, the taskflow considers the value assigned in the Data Task step.
Use the Data Task step to override in-out parameters unless your use case specifically demands the usage of the Assignment step.
You can get the current value of the in-out parameter only after the taskflow executes the Data Task step. You cannot get this value before the taskflow runs the Data Task step.