So i have a sequence which i have extracted as a workflow.
I am invoking this workflow from main.xaml file.
The workflow has 3 variables,which i have managed to invoke and in turn got converted to arguments.I even imported these arguments.Later published them.
So my main does have “Import argument” option.
Then my next question is : Why is it that despite clicking on import argument,the arguments are not populating in variable pane of main.xaml.
All is as expected. Invoke Workflow File activity has this button to easily allow you to assign variables or arguments to the ones from the invoked workflow.
You will need to have arguments for your Sequence in Main.xaml file and then you will be able to assign those as values in the Import Arguments window
Basically, each workflow has it’s arguments. These need to be passed around when you invoke one workflow from the another one.
This passing of arguments happens in the Invoked Workflow’s arguments window.
Basically, the Name in that window is the argument (from the arguments pane) of the file that is being invoked. Clicking Import Arguments will automatically populate this window for you.
The Value in that window are the arguments on the level the workflow is being invoked. In this case, you should assign each argument you have just created to each argument that was already there after automatic import
So i first need to create variables manually in argument pane ( As they didnt come automatically)Marked 1 in diagram
And then i need to assign those variables to the window marked 2(Which is invoked workflow’s argument window)
In that case,my next question is :
What is the use of this assignment as just creating new variables (1 in diagram) is passing parameters to Orchestrator.
Whats the need to assign these variables to invoked workflow’s argument window?
I am new to UI Path Studio.Hence these basic doubts.
The top-most level is the Orchestrator (in your case). You then take this argument and assign it as a value to the inner argument of the invoked workflow.
I hope it makes things clear I really hope someone has figured out an easier way to explain it (maybe graphically). I remember it took me some time to get it initially But it is rather straight-forward in the end.