Data tables to queues

Hi, My REframework is in data tables. I need to convert to queues. Essentially what changes are needed? Thank you so much,

Hi @A_Learner

The below video would not be to convert from datatable to queues but the video use to convert from queue to datatables.

It shows where changed from queue item to data row. Follow the video and do reverse to convert from datatables to queues.

Hope it helps!!

@A_Learner,

Converting your UiPath REFramework from using Data Tables to using Queues involves several changes to adapt to the queue-based architecture. Here’s a guideline on the key modifications you need to make:

  1. Main
    Change TransactionItem type to QueueItem

  1. Initialization:
    Remove the initialization of DataTables.
    Configure the necessary QueueName and TransactionItem properties.

  2. Get Transaction Data:
    Replace the DataTable usage with Queue activities such as “Get Transaction Item”
    image

  3. Error Handling:

  • Modify the error handling mechanisms to work with Queue items. When a transaction fails, use the “Set Transaction Status” activity to update the status of the Queue item.
  • Implement retry mechanisms as needed.
  1. End Process:
  • In the End Process state, handle any remaining Queue items appropriately. You may want to update their statuses or perform cleanup tasks.
  1. Logging:
  • Adjust logging activities to reflect Queue-related information rather than DataTable details.
  1. Configuration:
  • If necessary, update the configuration settings related to queue names, retry mechanisms, and other queue-specific parameters.
  1. Reframework Modifications:
    Modify the arguments and variables to accommodate Queue items instead of DataTable rows.
    Update any references to DataRow throughout the workflow to use Queue items.
  2. Testing:
  • Test the modified REFramework thoroughly to ensure that it retrieves, processes, and updates Queue items correctly.
  • Verify that the error handling mechanisms work as expected in a queue-based environment.
  1. Documentation:
  • Document the changes made to the REFramework to help maintainers understand the transition from DataTables to Queues.

Remember to carefully review and test each modification to ensure the proper functioning of the REFramework with the new queue-based architecture. Additionally, consider leveraging UiPath best practices and resources for working with Queues to optimize your workflow.

Thanks,
Ashok :slight_smile:

1 Like