<?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 Get process instance ID based on Process identifier in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/get-process-instance-id-based-on-process-identifier/m-p/21714#M9551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did any one has an idea about how to get the process instance id of a running process by using a script task in another process in which i can enter the process identifier of the called process as input?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Dec 2017 11:16:42 GMT</pubDate>
    <dc:creator>aextractor</dc:creator>
    <dc:date>2017-12-20T11:16:42Z</dc:date>
    <item>
      <title>Get process instance ID based on Process identifier</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-process-instance-id-based-on-process-identifier/m-p/21714#M9551</link>
      <description>Hi,Did any one has an idea about how to get the process instance id of a running process by using a script task in another process in which i can enter the process identifier of the called process as input?</description>
      <pubDate>Wed, 20 Dec 2017 11:16:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-process-instance-id-based-on-process-identifier/m-p/21714#M9551</guid>
      <dc:creator>aextractor</dc:creator>
      <dc:date>2017-12-20T11:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get process instance ID based on Process identifier</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-process-instance-id-based-on-process-identifier/m-p/21715#M9552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the query api, something like below...Check&amp;nbsp;&lt;A class="link-titled" href="https://www.activiti.org/userguide/index.html#queryAPI" title="https://www.activiti.org/userguide/index.html#queryAPI" rel="nofollow noopener noreferrer"&gt;Activiti User Guide - Query API&lt;/A&gt;&amp;nbsp;for more details&lt;/P&gt;&lt;PRE class="" style="color: black; background: #f8f8f8; border: 1px dashed #666666; padding: 1.25em 1.5625em 1.125em;"&gt;&lt;TABLE style="background: none; border: 0px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="" style="color: #6d6e71; font-size: inherit; padding: 0px 0px 0px 0.75em;"&gt;&lt;P&gt;&lt;SPAN class=""&gt;runtimeService&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d9029;"&gt;createProcessInstanceQuery&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666;"&gt;()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #666666;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d9029;"&gt;processDefinitionKey&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #ba2121;"&gt;"myProcessDefinitionKey"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #666666;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d9029;"&gt;variableValueEquals&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #ba2121;"&gt;"myVar"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666;"&gt;,&lt;/SPAN&gt; &lt;SPAN class="" style="color: #ba2121;"&gt;"someValue"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #666666;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d9029;"&gt;list&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666;"&gt;()&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 14:00:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-process-instance-id-based-on-process-identifier/m-p/21715#M9552</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-12-20T14:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get process instance ID based on Process identifier</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-process-instance-id-based-on-process-identifier/m-p/21716#M9553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I adjusted your code according to my case of use as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;runtimeService.createProcessInstanceQuery()&lt;/P&gt;&lt;P&gt;.processDefinitionKey("calledprocesstest")&lt;/P&gt;&lt;P&gt;.variableValueEquals("calledprocesstest_id", execution.getProcessInstanceId())&lt;/P&gt;&lt;P&gt;.list();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"calledprocesstest" is the process id of the process which i want to get its process instance id.&lt;/P&gt;&lt;P&gt;"calledprocesstest_id" is the variable that i want to set in the previous process instance id and map it in another process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it gives me "calledprocesstest_id" = empty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how to use your code correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2017 07:27:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-process-instance-id-based-on-process-identifier/m-p/21716#M9553</guid>
      <dc:creator>aextractor</dc:creator>
      <dc:date>2017-12-22T07:27:02Z</dc:date>
    </item>
  </channel>
</rss>

