How to add queue item in process state in Reframe work

How to add queue item in process state in Reframe work
earlier i had added in Get transaction State but code reviewer said its not correct in adding the queue in get transaction state , they wanted to include it process state and delete the get transaction state
Please do the needful if possible plz send screenshot of the same.

what all transition to connect and delete

Hi @T_Y_Raju

You have to add the queues to orchestrator only in Initialization state and in first run sequence. If do adding the Queues in Process transaction state. For every transaction the queues will added to orchestrator. This was not a good practice.
If you are using one project in RE Frameworks to add queues to orchestrator then you can add in process transaction state by deleting the Get transaction state and delete the transition line between them.

Hope it helps!!

HI @T_Y_Raju

Do you have a Dispatcher - Performer design? If yes you can do it in a Process state

If its a single process, adding in process state is not recommended as Process state runs in a loop based upon data from Queue.

Hope this helps.

Thanks.

its a despatcher and performer based model

i did not get this point
If its a single process, adding in process state is not recommended as Process state runs in a loop based upon data from Queue

hi @T_Y_Raju

Once you have the data that is to be added in the queue, you can use a Add Queue item activity and pass the key value pairs which could later be retrieved in the Performer process.

If you’re preparing a single process for Dispatcher Performer Combined bot process,

you can loop through all the data and use add Queue Item in Init> inside there’s an if activity where it says Config is nothing, you can add the data there too.

But mostly it’s recommended to keep them as separate two processes.

Thanks

Hi @T_Y_Raju

The following thread might helps you

Regards,