Handling queue item

Hello,

I have queue items where Company ID is the only thing join them

For example item 1=A,B,C_id1000 item 2=E,F,C_id:1000

now i need join them to do a job baced on the C_id , i can do this from the DB directly then set both as completed !
but seems not realy a good way while we are using the REF frame!

what is the right way to handle it? tips idea.

Im trying to avoid playing with the DB directly !

Note: i was try to merge them before i add to queue but i cant know before i process two item with the same C_id!

Hazem

Hi, @Hazem_Saleh

Add each item separately to the queue with the shared C_id as a reference.

When processing, get all items with the same C_id using “Get Queue Items” filtered by that C_id.

Combine their data in memory, do the job once for all related items.

Mark all these items as completed inside the workflow using Set Transaction Status.

Avoid direct DB changes and merging before queueing.

2 Likes

Thanks i will try this

lovely now i have them as list :wink: i still use the framework and after complete the same one, i get all and set them to complete :slight_smile:

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