<?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: Receive Task inside a Sub Process in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/receive-task-inside-a-sub-process/m-p/21710#M9547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you "signalling" the Receive Task?&lt;/P&gt;&lt;P&gt;Please provide a unit test demonstrating what you are seeing.&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Feb 2017 16:38:42 GMT</pubDate>
    <dc:creator>gdharley</dc:creator>
    <dc:date>2017-02-27T16:38:42Z</dc:date>
    <item>
      <title>Receive Task inside a Sub Process</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/receive-task-inside-a-sub-process/m-p/21709#M9546</link>
      <description>I have a BPM which has a receive task inside a sub process.When I try to signal the process instance execution after creation i get the following error :java.lang.NullPointerException&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.activiti.engine.impl.persistence.entity.ExecutionEntity.signal(ExecutionEntity.java:406)&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.activit</description>
      <pubDate>Mon, 27 Feb 2017 14:37:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/receive-task-inside-a-sub-process/m-p/21709#M9546</guid>
      <dc:creator>tahadakal</dc:creator>
      <dc:date>2017-02-27T14:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Receive Task inside a Sub Process</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/receive-task-inside-a-sub-process/m-p/21710#M9547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you "signalling" the Receive Task?&lt;/P&gt;&lt;P&gt;Please provide a unit test demonstrating what you are seeing.&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 16:38:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/receive-task-inside-a-sub-process/m-p/21710#M9547</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-02-27T16:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Receive Task inside a Sub Process</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/receive-task-inside-a-sub-process/m-p/21711#M9548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the prompt reply.&lt;/P&gt;&lt;P&gt;The Junit is updated at the end of question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 17:03:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/receive-task-inside-a-sub-process/m-p/21711#M9548</guid>
      <dc:creator>tahadakal</dc:creator>
      <dc:date>2017-02-27T17:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Receive Task inside a Sub Process</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/receive-task-inside-a-sub-process/m-p/21712#M9549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so the devil is always in the detail.&lt;/P&gt;&lt;P&gt;You are signalling the process instance ID which in this case is not likely to be the same as the execution ID, hence the NPE.&lt;/P&gt;&lt;P&gt;You will need to retrieve the execution ID by querying the engine for the receive task, then use that ID rather than the process instance id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 17:35:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/receive-task-inside-a-sub-process/m-p/21712#M9549</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-02-27T17:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Receive Task inside a Sub Process</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/receive-task-inside-a-sub-process/m-p/21713#M9550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Greg!! It works fine now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the reference of others, this is the order of usage.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;/activiti-rest/service/runtime/process-instances?businessKey=0642&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;/activiti-rest/service/query/executions [take the parent ID from step 1result]&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;{&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp; "parentId" : "97122075"&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;}&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;/activiti-rest/service/runtime/executions/97122088 [take the execution ID from step 2 result]&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;{&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;"&gt;"action":"signal"&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;}&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 13:33:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/receive-task-inside-a-sub-process/m-p/21713#M9550</guid>
      <dc:creator>tahadakal</dc:creator>
      <dc:date>2017-02-28T13:33:18Z</dc:date>
    </item>
  </channel>
</rss>

