Count the time for a transaction

i need to count the time for every transaction

Result 2min and 50s or 00:02:50

Hi @Soudios

You can do this

  1. Create a global variable (scope to Main.xaml flow) at the Get Transaction state which stores the start time of each transaction

  2. Create a global variable which stores the end time after set transaction state (accessible to main.xaml flow)

  3. Compute the difference b/w end and start time.

  4. This is the way by which u can compute the transaction time

Thanks & Regards,
Nived N

do you have a sample plz ?

I need to prepare a sample

give me 10 min

1 Like

Hi @Soudios

sorry for delay. here is the workflow
RoboticEnterpriseFramework_sample.zip (1.1 MB)

You could see i had two variables startTransactionTime and endTransactionTime which is initialised at get transaction state and process state (in final block) respectively

You get the time difference as below
image

Thanks & Regards,
Nived N

1 Like

Can you show me something more simple ?

just the assign and type plz ?

Did u meant a simple workflow like that ?

like what ?

i did this

image

But the format is not good :
image