I have scenarios like bot should get the transaction item as per the reference.
Eg : In queue ,items are available with 3 references
ref: abc
ref:bcd
ref :cde
Bot should check first abc and should process alla abc items,bcd n nxt cde
Also before taking transaction item, bot should check whether abc is available or not… If available process all abc items in queue…similar for other two.
@Bhanu123 : You can use Get Transaction Item activity by Specifying Reference as “ABC” & after that you can check the Transaction Item if its nothing then in Else you can use Get Transaction Item again with Reference “DEF” & so on … Not much reliable solution but one of the way to achieve the desired outcome
You can add the queue items with different prority…like abc with high, def with normal and ghi with low…so abc are picked first and then def and then ghi
If its more then adding more conditions is also not efficient…may be we need to pass all the combinations from dispatcher to performer in required order and use a loop to get each in the same order
If its only 3 then rather than checking conditions using priority would be ideal
@efelantti : We could do one more thing by creating String array with all the reference & inside For each we will call Get Transaction Item & If its returns Nothing then we can do continue.
Yes I tried this method it is working… In future if I get any reference to add or delete… i just need to add or emove that particular reference array… I will work fine… thanks