I have a scenario, where I want to execute a XAML file in RE-Framework after every passing 30 minutes. How can I achieve this? any suggestions

I have a scenario, where I want to execute a XAML file in RE-Framework after every passing 30 minutes. How can I achieve this? any suggestions.

That XAML file will execute in every 30 minutes when the bot stars.

@laraiv.khan2015

Schedule the bot for every 30 minutes from orchestrator

Cheers

Hi @laraiv.khan2015,

Do you want to run one workflow in reframework every 30 mins?

If yes you can keep that workflow in do while loop with 30 mins delay. But keep an exit to avoid infinite loop.

I can’t use delay.

My bot runs for 8 hours a day and one transaction take around 40 sec to process then it picks the next transaction. Think of it as I want to read some kind of configuration through a XAML, that configuration is updated after each 30 minutes. That means in 30 minutes roughly 45 transaction will execute. Then I want to read the configuration again through the XAML.

Thanks for replying.

But actually I can’t use scheduler

My scenario is

My bot runs for 8 hours a day and one transaction take around 40 sec to process then it picks the next transaction. Think of it as I want to read some kind of configuration through a XAML, that configuration is updated after each 30 minutes. That means in 30 minutes roughly 45 transaction will execute. Then I want to read the configuration again through the XAML.

Does reading the configuration takes more time? if its just few seconds then you can read it in every transaction.

Orelse keep that reading configuration workflow in Init all application and throw system exception evey half and hour or for every 45 transactions. So that bot retries and reads configuration again.

Or add if in the process checking if 30 mins is crossed is yes read configuration else dont.

@laraiv.khan2015

Create a variable DateTime say datTm…Now use a if condtion like if IsNothing(datTm) OrElse DteDiff(DateInterval.Minute,DatTm,Now) >=30

Then run the required xaml and then use a assign and set the DatTm = Now

Leave the else side empty

Hope this helps

cheers

Thanks for the reply

If i use a variable (i.e. xamlRunner datatype date time)

In the first run I will use assign activity to assign current time datetime.now

But how the increment will happen for this variable?

And once the process reaches to more than 30 minutes. Then this Configuration XAML will execute for every transaction because in IF we are checking> 30.

We need to reset this variable as well

Do you have any suggestions? To implement these changes in best possible way

Thankyou for replying.

@laraiv.khan2015

If you see my comments that is the reason I am saying to read the require xaml and then in the same then condistion use a assign activity and assign now again…so the timer is reset.now it will check for the new time…

This can be done in process xaml so that for every transaction it would be checked and then the file would be read only if the time is grwater than 30 and the new time will be assigned to the variable

Cheers

1 Like

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