I have a process that has to scheduled to run 3 times a day (10AM, 2PM, 6PM). For each run, the process needs to consume data from a different queue.
How do i do this, without changing code or config ?
I have a process that has to scheduled to run 3 times a day (10AM, 2PM, 6PM). For each run, the process needs to consume data from a different queue.
How do i do this, without changing code or config ?
use the queue name as an argument for the process is the most efficient way to handle varying data sources for different schedule times. When scheduling the process, you can specify different queue names as input arguments for each trigger (10AM, 2PM, 6PM).
Please folllow below steps:
Go to:
Automations → Processes
Find your process, click the three dots (⋮), then select:
Add Trigger → Time Trigger
On the Create Time Trigger screen, fill in:
Run_10AM_QueueA10:00 AM{
“QueueName”: “Queue_A”
}
Repeat the same steps and use:
Run_2PM_QueueB2:00 PMAgain repeat the same steps and use:
Run_6PM_QueueC6:00 PMThis works only if your automation already has an input argument such as QueueName and uses that value dynamically.
@RPA_Geek1 Are you able to resolved this problem with above solution? Please let us know
Use an asset and change the asset value before starting the execution.
And one more solution that if you dont want to change asset value each time, then you can build a logic in code Like,
Based on Bot run time you can define the queue name in asset like let say
10Am_asset = 1st queue, 2pm_asset = 2nd queue, 6pm_asset = 3rd queue
then in your code check the bot start time if it startes between 10AM - 2pm then read the 1oAm asset, 2pm - 6pm then read 2nd queue 6PM - 10AM next day then read 3rd asset value. based on how many queues you have.
Hi @RPA_Geek1
If you are building your automations in the Robotic Enterprise Framework template, then you have 2 arguments available to pinpoint the queue to use.
When creating your triggers, you just have to make sure that the 3 triggers are configured with the required queue to use.
Regards
Soren