hey everyone, i don’t really get what it does. i read the documentation and i also read some forum posts. still i don’t get it. anyone got any good ideas?
The “Isolated” property in the “Invoke Workflow” activity in UiPath specifies whether the invoked workflow should run in a separate isolated context. When set to “True,” it ensures that variables and arguments are not shared between the main workflow and the invoked workflow, providing a clean separation. This is useful when you want to avoid unintended interference between variables or maintain data privacy within the invoked workflow. When set to “False,” variables and arguments can be shared, promoting interaction between the main workflow and the invoked one. It allows flexibility in how data is exchanged between the workflows.
In generic, Isolated property in UiPath activities specifies whether the activity runs in a separate process.
When the Isolated property is set to
True , the activity runs in a separate process from the main UiPath Studio process.
This can be useful for activities that are prone to errors, as it will prevent the errors from crashing the main UiPath Studio process.
Isolated (True): If you set the “Isolated” property to “True,” it means that each instance of this activity, when executed in parallel, will have its own separate set of variables and state. This is useful when you want to avoid interference between parallel executions of the same activity. Each instance will work independently, and changes made in one instance won’t affect others.
For example, u can use here the isolated property
- When using activities that interact with external systems, such as databases or web services.
- When using activities that are prone to errors, such as the Click activity.
- When using activities that require a lot of resources, such as the Data Table activity.
Isolated (False): If you set the “Isolated” property to “False,” it means that all instances of this activity, when executed in parallel, will share the same set of variables and state. This is useful when you want parallel instances to work with a shared context, where changes made in one instance can be seen by others.
Hope this clarifies
first of all thanks for the quick reply. could you maybe provide an example code?
Hope this clarifies
sorry but i still dont get it can you provide any code?
I don’t have a code handy but to explain on scenarios
Here you go
If Isolated = True
You are using an activity to interact with a database. The database is located on a remote server, and the connection to the database is sometimes unreliable. You can set the Isolated property to
True to prevent the main UiPath Studio process from crashing if the connection to the database fails.
You are using an activity to click on a button on a web page. The web page is sometimes slow to load, and the Click activity sometimes fails because the button is not yet loaded. You can set the Isolatedproperty to
True to prevent the main UiPath Studio process from crashing if the Click activity fail
If Isolated = False
You are using an activity to write data to a file. The file is located on the same computer as the UiPath Studio process. You do not need to set the Isolated property to
True because the file is easily accessible to the UiPath Studio process.
You are using an activity to perform a simple calculation, such as adding two numbers together. You do not need to set the Isolatedproperty to
True because the calculation is simple and can be performed quickly by the UiPath Studio process.
Hope this clarifies
Just to add - while it’s possible that the UiPath Studio process would crash, that wouldn’t usually be the case in the scenarios that you described. An exception would be thrown but it would be possible to handle it.
But as you said, invoking a workflow as Isolated would help when the UiPath process crashes, but that means actually crashing - out of memory and so on.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.