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.
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
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.