How to use same process with different queue

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:

Steps

1. Open the process in Orchestrator

Go to:

Automations → Processes

Find your process, click the three dots (⋮), then select:

Add Trigger → Time Trigger


2. Create the first trigger for 10 AM

On the Create Time Trigger screen, fill in:

  • Name: Run_10AM_QueueA
  • Timezone: select your local timezone
  • Process: choose your process
  • Frequency: set it to Daily or the equivalent time-based daily option
  • Time: 10:00 AM
    In Runtime Arguments, pass the queue name, for example:

{
“QueueName”: “Queue_A”
}

3. Create the second trigger for 2 PM

Repeat the same steps and use:

  • Name: Run_2PM_QueueB
  • Time: 2:00 PM
    {
    “QueueName”: “Queue_B”
    }

4. Create the third trigger for 6 PM

Again repeat the same steps and use:

  • Name: Run_6PM_QueueC
  • Time: 6:00 PM
    {
    “QueueName”: “Queue_C”
    }

This 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

@RPA_Geek1

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