<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting Pending and Deferred Items in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Getting-Pending-and-Deferred-Items/m-p/122318#M53647</link>
    <description>&lt;P&gt;Agree on using multiple work queues. Load the child work queue when you are processing the parent work queue then process them one-by-one. This will keep your parent item locked while working on the subsequent items. You won't need to defer the queue item at this stage as they are getting processed in a waterfall style. I hope that makes sense... and it helps. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Aug 2025 13:02:55 GMT</pubDate>
    <dc:creator>grbanares</dc:creator>
    <dc:date>2025-08-29T13:02:55Z</dc:date>
    <item>
      <title>Getting Pending and Deferred Items</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-Pending-and-Deferred-Items/m-p/122249#M53611</link>
      <description>&lt;P&gt;Greetings, All,&lt;/P&gt;&lt;P&gt;I just recognized that I have been missing something...for years.&amp;nbsp; File this under 'I assumed it was working the way I expected.'&lt;/P&gt;&lt;P&gt;I have a number of processes where the target application only allows a single instance of the 'parent' record to be open while working the 'child' record.&amp;nbsp; To accommodate this, I set up an Environmental Lock keyed to the 'parent' record ID.&amp;nbsp; If the 'parent' record is found to be in use, the 'child' record is deferred for some amount of time.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now to the process and the question/challenge at hand.&amp;nbsp; I have a screenshot of my standard 'Get Next Item' loop.&amp;nbsp; This checks for a pending Item and, if it finds one, it goes on its way.&amp;nbsp; If it does not find a pending record, it waits 15s (in this case) and then rechecks.&amp;nbsp; Again, if it finds one, it continues on.&amp;nbsp; If it still does not find a pending record it now looks for [what I believed] was &lt;EM&gt;any&lt;/EM&gt; pending item.&amp;nbsp; My thought was that any record that had been deferred, based on an existing lock, would reset the check process.&amp;nbsp; I honestly thought my primary issue was going to be akin to an 'infinite loop', but that never happened.&amp;nbsp; And now I know why.&amp;nbsp; The get 'Pending Items' is not recognizing deferred items, which closes out this step and sets the deferred items as orphans.&lt;/P&gt;&lt;P&gt;Looking at the screenshot, I have one clarification:&amp;nbsp; The 'Got Item?' decisions are based on returning an Item ID, which is held off-page in a global variable.&lt;/P&gt;&lt;P&gt;Does anybody have a better (or at least functional) method to address this?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Red&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Our Standard 'Get Next Item' Loop" style="width: 680px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/41416i4402164E65CCF4E4/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Getting Pending and Deferred Items.png" alt="Our Standard 'Get Next Item' Loop" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Our Standard 'Get Next Item' Loop&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2025 18:44:39 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-Pending-and-Deferred-Items/m-p/122249#M53611</guid>
      <dc:creator>stepher</dc:creator>
      <dc:date>2025-08-25T18:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Pending and Deferred Items</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-Pending-and-Deferred-Items/m-p/122295#M53635</link>
      <description>&lt;P&gt;Hello. From your flow I am not sure if you are using one queue or two? From your explanation I think you have one queue with same keys in a number of items and are using environmental lock to try to make sure all items are processed together by the same robot?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I required a similar process logic many years ago at a telecom client (2012 maybe!). My solution was to have two work queues, a parent queue and a child queue.&amp;nbsp; The child queue would only be read by the robot that had locked the parent item. This seemed clean as the parent queue was good for monitoring how many of the unique keys had been processed, it also avoided needing complex lock logic.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 09:26:58 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-Pending-and-Deferred-Items/m-p/122295#M53635</guid>
      <dc:creator>Denis__Dennehy</dc:creator>
      <dc:date>2025-08-28T09:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Pending and Deferred Items</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-Pending-and-Deferred-Items/m-p/122297#M53637</link>
      <description>&lt;P&gt;Thanks so much for your reply,&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/16677"&gt;@Denis__Dennehy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The suggestion make sense.&amp;nbsp; The process currently uses two Blue Prism WQs, one for 'workqueues' (sic) within the target application and one for the records contained within these.&amp;nbsp; I could insert a third BPWQ to manage the parent records.&lt;/P&gt;&lt;P&gt;I will look into this. Thanks!&lt;/P&gt;&lt;P&gt;Red&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 12:54:52 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-Pending-and-Deferred-Items/m-p/122297#M53637</guid>
      <dc:creator>stepher</dc:creator>
      <dc:date>2025-08-28T12:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Pending and Deferred Items</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-Pending-and-Deferred-Items/m-p/122318#M53647</link>
      <description>&lt;P&gt;Agree on using multiple work queues. Load the child work queue when you are processing the parent work queue then process them one-by-one. This will keep your parent item locked while working on the subsequent items. You won't need to defer the queue item at this stage as they are getting processed in a waterfall style. I hope that makes sense... and it helps. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2025 13:02:55 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-Pending-and-Deferred-Items/m-p/122318#M53647</guid>
      <dc:creator>grbanares</dc:creator>
      <dc:date>2025-08-29T13:02:55Z</dc:date>
    </item>
  </channel>
</rss>

