The "Main.xaml" file has an "In" argument of type String with a default value of "String.Empty". What is the runtime value of the argument when executing the process from the Start Job window in UiPath Orchestrator?
A.
A runtime error will occur as arguments are not allowed in the "Main.xaml" file.
B.
Only the default value of "String.Empty" will be used, overriding any values provided in Orchestrator.
C.
@ If any input arguments are provided in Orchestrator, those values will be used; otherwise, the default value of "String.Empty" will be used.
D.
An Input Dialog box will prompt the user to input a value and that value will be used.
When a process is executed from the Start Job window in UiPath Orchestrator, the runtime value of an "In" argument in the "Main.xaml" file will be the value provided in Orchestrator if specified. If no value is provided in Orchestrator for this argument, then the default value specified in the "Main.xaml" file will be used, in this case, "String.Empty". Therefore, option C is correct. Arguments can be passed to the "Main.xaml" file from Orchestrator, and there is a mechanism to handle default values for arguments in case they are not provided at runtime.
[References:, UiPath Orchestrator Guide: Starting a Job, UiPath Studio Guide: Managing Arguments, , , ]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit