Questions around Invoke Workflow activity - advanced section

Hi Experts ,

Hope everyone is doing well, I am looking through advanced features in Invoke workflow file activity, as i am able to understand some properties we rarely used, but could not understand the usage of some of them , need your help in understanding those, may i need simple explaination that would help to understand

General Overview of problem

  1. I have workflow Calculate_Sum.xaml which accepts two numbers and add those and return output as sum from the workflow as shown below

Now the workflow is invoked in Main.xaml using invoke workflow file activity

Instead of passing arguments via Arguments button in invoke workflow activity, i tried to pass it via ArgumentsVariable property as shown below

As you could see I am able to pass the In Arguments to workflow via this, but can’t specify out_Arguments here, is it a limitation or we can pass the out Argument via this property as well ?- But one thing i observed is when using this property , i could not use ArgumentsVariable property, So just want to check whether we can really specify the out Argument here or not ?

--------------------------------------------------------------------------------------------

  1. Now coming to isolated property in invoke workflow file, what is its exact usage? As i could see from UiPath Documentation, i see its written like this -

It finally says it helps to seperate faulty workflow from main, i did not understand what does it really mean, does it really act like continue on error ?

I have went through some forum questions regarding same - but i still did not understand due to explaining it in complicated way, I may need a simple explanation to understand this.

  1. Ok Now coming to Target Session property in Invoked Workflow, What is difference b/w Main and current session ? - also i have explored documentation of UiPath regarding this but still could really get the point of what this Target session really is ?

Thanks in Advance !

@NIVED_NAMBIAR

  1. the out arguments does pass but because of the dictionary it wont be assigned to variable you give
    to check do this…create a dict as variable and assign the variable in invoke…and then check the dict(“out argument key”) you would see value getting passed out

  1. Now coming to isolated, it would either be runnign under same process…like when you check task manager each workflow will be under same ui path process if you selected isolated there will be multiple created

  2. When isolated is kept true…you ahve option to choose current so for example if parent is also isolated then it would have a different process than main…so current belongs to the parent and main belongs to the main xaml…

Hope this helps

cheers

1 Like

Hi @Anil_G

Thanks man , now ArgumentVariables part is very clear for me :slight_smile:

But still for isolated part- in the documentation they have mentioned that it helps isolating a faulty workflow from main, but my question is what is usage of that > as we have exceptions handling mechanisms already for that ?

@NIVED_NAMBIAR

We do haqve exceptional handling but while trying to know unhandled exceptions in the event viewer logs and all you would see the isolated workflow name instead of main name…this helps where exactly it happened. I would agree that logs would help…but sometimes logs also wont be uploaded completely and the process stops …for thsoe unforseen situations it would help

cheers

1 Like

Hi @Anil_G

Thanks for the information-

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.