Hello Team,
I have a requirement where I need to two queues with one disptacher reframework logic. Please explain how to do it
Any suggestions would be helpful?
Thanks,
Nawaz.
Hello Team,
I have a requirement where I need to two queues with one disptacher reframework logic. Please explain how to do it
Any suggestions would be helpful?
Thanks,
Nawaz.
The two queues which needss to be created comes from two excel sheets. Please provide suggestions. Thanks
You can use the same Dispatcher REFramework for both queues.
If SheetName = "Sheet1" Then
QueueName = "Queue1"
Else
QueueName = "Queue2"
End If
Then use the same Add Queue Item activity and pass the QueueName variable dynamically.
By the end of the loop, all records from both sheets will be added to their respective queues.
Let me know if you need any further help.
You have two worksheets, for that two sheets data you need to add it in the queue, Here if your excel only having two sheets then
Hope it helps!
Yes, you can use one Dispatcher for two queues. Just read both Excel files separately, then push data from the first Excel to Queue A and from the second Excel to Queue B using Add Queue Item. A better way is to add a “QueueName” column in your Excel, merge both data tables, and use one loop to push items dynamically based on that column.
Can you share sample as there are many Arguements like Get Transaction Data, Out_Transaction_Item and io_dt_Transactiondata how to use them. Any suggestions would be helpful. Thanks
In Dispatcher REFramework, first in the Init state you read your Excel file and store all the data in io_dt_TransactionData, which holds the complete dataset. Then in the Get Transaction Data state, the framework picks one row at a time from this data and stores it in out_TransactionItem, which represents the current item being processed. After that, in the Process state, you use this current row to perform actions like adding it to a queue. The framework automatically loops through all rows one by one until all data is processed.
In Dispatcher REFramework, you mainly need to work inside the Get Transaction Data state.
dt_Sheet1dt_Sheet2If SheetName = "Sheet1" Then
QueueName = "Queue1"
Else
QueueName = "Queue2"
End If
Then use the same Add Queue Item activity:
QueueName = QueueName
ItemInformation = CurrentRow
io_dt_TransactionData
→ Stores Excel/transaction data DataTable
out_Transaction_Item
→ Current transaction/row being processed
Get Transaction Data
→ Used to fetch next transaction item from DataTable
In Dispatcher scenario, you usually:
So you may not need full transaction handling logic like Performer REFramework.
Hi @MohammedShabbir,
You can handle two queues in a single Dispatcher REFramework by reading multiple sheets or datasets and dynamically assigning the queue name during processing.
Sheet1 into dt_Sheet1Sheet2 into dt_Sheet2Then inside Get Transaction Data or Process logic:
If SheetName = "Sheet1" Then QueueName = "Queue1"Else QueueName = "Queue2"End If
Use the same Add Queue Item activity:
QueueName = QueueNameItemInformation = CurrentRow
io_dt_TransactionDataout_Transaction_ItemGet Transaction DataThis way, one Dispatcher can push transactions into multiple queues using the same REFramework logic.