Where Should the Add Queue Item Activity Be Added in a UiPath Workflow?

Where exactly should the Add Queue Item activity be placed in a UiPath workflow?

Should it be inside InitAllApplications.xaml, or within the block that checks If Config is Nothing?

if a system exception occurs, I hope the workflow will return to InitAllApplications.xaml and try to add the queue item again.

Please Correct Me.

It should be in Process.xaml as that’s the output of your process, to create a queue item. However, if you’re creating a dispatcher automation then REFramework really isn’t a good choice.

@Vaishnavi_R

generally if you want to combine dispatcher and performer then in initializestate in the if first run is where you would place it or create a similar condition using using transaction number=0 in get transaction data and add there as well

but if dispatcher is complex or have some interactions and conditions then its better to do it in separate automation

initallapplications is definitely not a good place as you mentioned it would run whenever there is an exception

cheers

1 Like

Hi @Vaishnavi_R

You are correct there-- Add queue item should not be part of initallapplications as everytime system exception occurs, it will try to re-add the queue item..

For re-framework, you should have add queue item workflow created under section “if config is nothing”, which means items will be added only initially when process starts.

1 Like

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