Pass Variable From Process Work Flow to End Process Work Flow in ReFramework

Hey EveryOne,

It’s my first question here I rarely ask questions only if I am stuck badly.

So here is my problem:

inside the Process Transaction:

I have Process:

The image shows a list of UiPath workflow files with their respective names ending in .xaml. (Captioned by AI)

Inside my Process I have 2 variable I did create on Variable table.

  1. emailsSentCount
  2. errorCount
    I am use Assign activity to up the count inside the Process.

I want to use these two variables in the " end Process "

I want to use these two variables in the CloseAllAppliactions to send Report.

image

for that, I need to import the arguments in the Invoke CloseAllAppliactions:

But in this situation, it does not recognize them.

Is there any possible way to pass the argument\ variable in my problem?

Thanks for any helper in this situation :frowning:

Hie @Fonzie for this create a out argument and pass the variable value through argument for the sequence block and create a variable outside the process block to store the value and increase the scope now come in the end process create a (in) direction argument to store the value …
like this



cheers Happy Automation

Thanks you for the replay i am really appreciate that,
but I don’t understand how I can increase you can upload images with int with increase every time like value + 1 like my problem for I can understand?

Please.

how I can increase if I make the out the variable?
@singh_sumit

@Fonzie so you want to write it on the excel and increase the cell count like first it write on cell E2 Then E3 like this ??

in my program i check if the email is sent if the email is sent and no error I increase the emailsentcount = emailsentcount + 1.

I want to pass the emailsentcount to the report in the EndProcess.

just increase normal counter and send the counter in the end to the endprocess to report how many emails are sent

like this ?

HI @Fonzie

Create Arguments in the Process.Xaml with out direction.(Dont create variable here)

Create variable here Scope should be GEneral business and invoke the areguments which is inside the Process.Xaml

Now Go to the End Process,Create the In Argument and Invoke wth the Variable

@Fonzie,

We got very easy solution for this, use Global variables. Refer this article for more information h=on how to declare, how to use etc.

Thanks,
Ashok :slight_smile:

Thanks you for replay there is 1 problems:

If I each transaction init the out to be 1 how it will be counter in the end?

for example if I have 10 transaction and 8 I did sent emails and 2 have error

and in the end I want to report : 8 emails sent , 2 errors

in this way I always get 1 no ?

@Fonzie
Note:This case only possible when retry is 0
Create variables in the init state as below check the scope

Create Arguments in the Set Transaction Status Xaml as below as In/Out Direction

In success of Transaction status,Increment the Sucess Mail Count using assign activity

In the Business and system exception of Set Transaction status xaml Increment Errors as below

Now go to the EndProcess,Close All applications xaml and create 2 arguments with in Directions as below

Hope you understood!!