The difference and usage for the 2 activities under workflow\Invoke

activities
workflow

#1

Hi Folks,

Who knows the difference and usage for the 2 activities under workflow\Invoke.
if someone can provide demo, it is great :slight_smile:

Thanks,
ray


#2

I also want to know, we are in same team to study that.


#3

It is something you’re not usually going to use.
There are use cases when workflows are running under Windows Session 0 which means no user interface or interactive session. This works well for file processing, background jobs.
In that case if, at some point, you need to perform clicks, user interface actions you’ll need to open an interactive session.

https://www.uipath.com/activities-guide/launch-workflow-interactive


#4

hi @rzhang

Invoke Workflow Activity

Synchronously invokes a specified workflow, optionally passing it a list of input arguments.

Properties
Input
WorkflowFileName
The filepath of the .xaml file to be invoked. This field accepts only string variables. The filepath is relative to the current project folder.

Note: All string variables must be placed between quotes.

Arguments
The parameters that can be passed to the application at startup.

UnSafe
If this check box is selected, the invoked workflow runs in a separate Windows process. This helps with isolating a faulty workflow from the main workflow.

Common
DisplayName
The display name of the activity.

ContinueOnError
Specifies to continue executing the remaining activities even if the current activity failed. Only boolean values (True, False) are supported.

Misc
Private
When selected, the activity generates no log data.

Example Link-

Launch Workflow Intractive

Synchronously invokes a specified workflow, forcing an interactive Windows session, if necessary. Optionally, you can pass it a list of input arguments.

Properties
Input
KeepSessionConnected
If this check box is selected, in case the interactive session is disconnected, an automatic reconnection is attempted. By default, this check box is selected.

LoginToConsole
If this check box is selected, the interactive session connects to the console. Otherwise, it uses remote desktop protocol to connect to the machine. By default, this check box is cleared.

WorkflowFileName
The filepath of the .xaml file to be invoked. This field accepts only string variables. The filepath is relative to the current project folder.

Note: All string variables must be placed between quotes.

Arguments
The parameters that can be passed to the application at startup.

Screen Resolution
Width
The new screen width of the interactive session to be opened. Positive and negative integers are supported.

Height
The new screen height of the interactive session to be opened. Positive and negative integers are supported.

Depth
The color depth of the interactive session to be opened. Standard color depth values compatible with your machine’s graphical capabilities are accepted. For example, 16, 24, 32, 48 etc.

Common
DisplayName
The display name of the activity.

ContinueOnError
Specifies to continue executing the remaining activities even if the current activity failed. Only boolean values (True, False) are supported.

Misc
Private
When selected, the activity generates no log data.

Link Example:

Regards…!!
Akshay


Desktop-has-been-disconnected-while-performing-ui-action
Disconnection error
#5

Are there any sample for this activity?
I hope to know in what case we can use still.