Hi, I have one process which is helping to populate one Sales Order Number. I am using those the salesorder number and adding them in one queue with reference.
My requirement is that I want to update the address with that order number in Microsoft AX ERP tool. But with those sales order number can be done anything in AX with in 15min of it’s population.
My question: If any queue item is postpone for 15 min interval. using that same process it self how those postpone queue items only get picked up every 15 minutes from Orchestrator to be processed further ?
Ideally if you postpone for 15 mins it the item would be active again or in new state again only after 15 mins…and it would be picked up
Are you facing any issue?
Sometimes it might take littlw more if a queue trigger is being used and no active bot is running…as by default orchestrator queue triggers check for new items after 30 mins (this is only for postponed items…if new then they are picked up immediately
I need help in one scenario i.e: Once the sales order queue items are available in the queue can we somehow have one boolean value which will be able to trigger the job after 15min? If yes can you please help me with am example code workflow?
Hi, Thanks for the info…But as of I know the queue based trigger will picked up once the queue item will be available with status as “NEW”.
My requirement is it should be pickup based on the postponed time with status as “NEW”. Not just only when the NEW queue item will be available…
Is it possible that queue item would be picked up by postpone time(because the queue items needs to processed after certain time)? or it will always be picked up based on the “NEW” status?
When adding a new queue item to the queue, set the status to “New” and specify the postpone time for the desired delay before processing. In your process, configure a recurring schedule (e.g., using a cron expression) within UiPath Orchestrator to run a trigger or job every few minutes.
Within the trigger or job, use the “Get Transaction Item” activity to retrieve the queue items that are due for processing based on the postponed time. Set the Filter option to retrieve only items with the status “New.”
Use an “If” condition to check if the fetched queue item’s postponed time has elapsed. Compare the postponed time with the current time to determine if it is ready for processing.If the postponed time has elapsed, proceed with processing the item,
After processing the item, use the “Set Transaction Status” activity to mark the item as complete in the queue.
By following this approach, the trigger or job will run periodically, and the workflow will fetch the queue items based on the postponed time and the “New” status. Only the items that have surpassed their postpone time will be processed.
Say you added a queue item without any postponed time - then the queue trigger will immediately start and process it
Say you added one more queue item with a postponed time…say 1 hour from now… - then the queue tirgger will happen only after one hour because the item will not be available till the postponed time is reached…
This is not on status New…but the item itselft will be available after the time so it trigger only after that
Hi,
I have tried to add some queue item with a minute or 2 min postpone time. But whenever the queue item is available in the queue with NEW state the process is getting triggered immediately.
It’s not waiting for the postpone time to be over of the queue item.
Can you please check the postponed time that you have given…orchestrator generally takes utc time…because of time difference may be the time given is behind…try adding a day and check …so that we cna be sure or tey using date convertion yo utc
Hi,
Yes sure I can check that but then the normal time trigger is getting working correctly. If it’s about date conversion then the normal trigger would not worked also.
Access the transaction item’s postpone time from the retrieved transaction details. You can use the item.SpecificContent("PostponeTime") expression.
Compare the postpone time with the current time to determine if the postpone time is over. You can use the DateTime.Now function to get the current time.
HI,
Yes I have checked it and the time is coming correctly… For example If I postpone the queue item as DateTime.Now instead of DateTime.Now.AddMinutes(2) then it’s able to pickup the queue item and triggering the process
Hi,
But is bot picking up queue item after 1 hour of postpone time ?
Also one thing bot queue based trigger automatically checks with 30min of interval time then if any item with NEW status is available then it starts the process. So for your case could it like after 60min anyway bot checks the queue item with NEW status…
Have you tried with for example with 5min or 10min of postpone time ?