<?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 Querying to find currently waiting receive tasks in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/querying-to-find-currently-waiting-receive-tasks/m-p/95234#M65320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've taken this example from the activiti site:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;receiveTask id="waitState" name="wait" /&amp;gt;&amp;nbsp; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;To continue a process instance that is currently waiting at such a receive task, the runtimeService.signal(executionId) must be called using the id of the execution that arrived in the receive task. The following code snippet shows how this works in practice:&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;ProcessInstance pi = runtimeService.startProcessInstanceByKey("receiveTask");&lt;BR /&gt;Execution execution = runtimeService.createExecutionQuery()&lt;BR /&gt;&amp;nbsp; .processInstanceId(pi.getId())&lt;BR /&gt;&amp;nbsp; .activityId("wait")&lt;BR /&gt;&amp;nbsp; .singleResult();&lt;BR /&gt;assertNotNull(execution);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;STRONG&gt;Question&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't have access to the activity Id is there anyway to find tasks that are in suspended state? All I have access to is the processInstanceId. Using this I need to signal to the waiting task to continue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2012 17:14:19 GMT</pubDate>
    <dc:creator>imamchishty</dc:creator>
    <dc:date>2012-04-04T17:14:19Z</dc:date>
    <item>
      <title>Querying to find currently waiting receive tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/querying-to-find-currently-waiting-receive-tasks/m-p/95234#M65320</link>
      <description>Hi guys,I've taken this example from the activiti site:&amp;lt;receiveTask id="waitState" name="wait" /&amp;gt;&amp;nbsp; ‍&amp;nbsp; To continue a process instance that is currently waiting at such a receive task, the runtimeService.signal(executionId) must be called using the id of the execution that arrived in the receive</description>
      <pubDate>Wed, 04 Apr 2012 17:14:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/querying-to-find-currently-waiting-receive-tasks/m-p/95234#M65320</guid>
      <dc:creator>imamchishty</dc:creator>
      <dc:date>2012-04-04T17:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Querying to find currently waiting receive tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/querying-to-find-currently-waiting-receive-tasks/m-p/95235#M65321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use the getActiveActivityIds of the RuntimeService to get all active activity ids of a specific process instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 07:42:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/querying-to-find-currently-waiting-receive-tasks/m-p/95235#M65321</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-04-05T07:42:59Z</dc:date>
    </item>
  </channel>
</rss>

