I read somewhere that it is like passing values (for in-type arguments) and getting a returned value (for out-type arguments). Does that mean, a sequence (or a .xaml file) can return multiple values as output arguments?
Also, how do they work?
If sequence A sends an argument to sequence B when invoking it, say “in_argNameA”, where does this need to be declared? In sequence A, or sequence B? Or both?
And then, if sequence B returns an argument, it should be declared inside sequence B as “out_argNameB”, right?
What I don’t understand is, how can a sequence A get this value? because in sequence A’s point of view, the value is coming “in” to it from sequence B, and hence it should be declared “in_argNameA”, and this is different from “out_argNameB”, and the name doesn’t match.
And not just that, the arguments are in local scope, right? so even if we use the same argument name, say “in_argExample”, in both sequence A and sequence B, they are two different variables.
I really don’t understand what is going on. Can anyone clarify this for me?
We will declare arguments when we need to communicate between two workflows. For this arguments, we need to specify direction like In, Out and In/out. I.e.
In – the argument can only be used within the given project.
Out – the argument can be used to pass data outside of a given project.
In/Out – the arguments can be used both within and outside of a given project.
We can use declare ‘n’ no. Of arguments in our workflow if we need and need to specify direction for each.