<?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: Fetch the process instances by passing the multiple business key[processBusinessKey] values. in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20899#M9193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;multiple values can be submitted using data tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2018 16:16:57 GMT</pubDate>
    <dc:creator>bassam_al-saror</dc:creator>
    <dc:date>2018-06-26T16:16:57Z</dc:date>
    <item>
      <title>Fetch the process instances by passing the multiple business key[processBusinessKey] values.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20894#M9188</link>
      <description>Hello,I have one process which has task and form fields. And I have one field "location" which I am considering as business key.&amp;nbsp; For example, I have 2 locations as: India and UK. I want to fetch the process instances of these two locations. Means I need to pass the multiple business key values. Is</description>
      <pubDate>Wed, 20 Jun 2018 12:51:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20894#M9188</guid>
      <dc:creator>shilpak</dc:creator>
      <dc:date>2018-06-20T12:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the process instances by passing the multiple business key[processBusinessKey] values.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20895#M9189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure I understood what are you trying to do. Do you want to do a query that returns process instances&amp;nbsp;based on&amp;nbsp;those values (form field values)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you also specify whether you are using Activiti or APS and what version?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 08:04:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20895#M9189</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-06-21T08:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the process instances by passing the multiple business key[processBusinessKey] values.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20896#M9190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. I want to do a query that returns process instances based on form field values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using APS 1.7.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 10:02:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20896#M9190</guid>
      <dc:creator>shilpak</dc:creator>
      <dc:date>2018-06-21T10:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the process instances by passing the multiple business key[processBusinessKey] values.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20897#M9191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can query based on process variables values. For example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="" style="color: #333333; background-color: #f5f5f5; border: 1px solid #888888; margin: 0px 0px 20px; padding: 2px;"&gt;&lt;SPAN class="" style="color: #000000;"&gt;POST api&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;/&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;enterprise&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;/&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;historic&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;process&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;instances&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;/&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;query&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="" style="color: #333333; background-color: #f5f5f5; border: 1px solid #888888; margin: 0px 0px 20px; padding: 2px;"&gt;{"variables":[{"name":"myVar","value":"US","operation":"equals"}]}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 11:23:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20897#M9191</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-06-21T11:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the process instances by passing the multiple business key[processBusinessKey] values.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20898#M9192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;B&gt;bassam.al-sarori&lt;/B&gt;&lt;SPAN&gt;&amp;nbsp; for the solution. It worked for me. In my case I want to pass multiple values for the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;value&lt;/STRONG&gt;&lt;SPAN&gt;. For example, I have to pass "US", "India", "UK" etc... as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;value&lt;/STRONG&gt;&lt;SPAN&gt;. Is this possible to pass multiple values at once?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2018 11:26:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20898#M9192</guid>
      <dc:creator>shilpak</dc:creator>
      <dc:date>2018-06-22T11:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the process instances by passing the multiple business key[processBusinessKey] values.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20899#M9193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;multiple values can be submitted using data tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 16:16:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20899#M9193</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-06-26T16:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the process instances by passing the multiple business key[processBusinessKey] values.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20900#M9194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please provide any example or documentation link?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 05:03:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20900#M9194</guid>
      <dc:creator>shilpak</dc:creator>
      <dc:date>2018-06-27T05:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the process instances by passing the multiple business key[processBusinessKey] values.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20901#M9195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I meant dynamic tables can be used&amp;nbsp;for multiple values (rows).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/21677_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 08:38:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20901#M9195</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-06-27T08:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the process instances by passing the multiple business key[processBusinessKey] values.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20902#M9196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;I want to fetch the process instances of multiple locations.&amp;nbsp;For this I am using following swagger api:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;A href="http://localhost:8082/activiti-app/api-explorer.html#!/process-instances/getHistoricProcessInstancesUsingPOST" title="http://localhost:8082/activiti-app/api-explorer.html#!/process-instances/getHistoricProcessInstancesUsingPOST" rel="nofollow noopener noreferrer"&gt;http://localhost:8082/activiti-app/api-explorer.html#!/process-instances/getHistoricProcessInstancesUsingPOST&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;For this I have passed the process variable value as you suggested.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;If I pass single location name then it is working properly.I am getting the process instances of that location . I have tested this in the postman. I am attaching here those screens:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; color: #727174;"&gt;Scenario 1: Fetching process instances of puna location(by variables [name as location and value as puna])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;IMG alt="I am passing variable name as location and value as puna" class="image-1 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/21683_screen1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; color: #727174;"&gt;For this request I am getting following response[this location has 2 records[process instances] so I am getting those 2 records:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;IMG alt="Response data for puna location" class="image-2 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/21684_screen2.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;STRONG style="background-color: #ffffff; color: #727174;"&gt;Scenario 2: Fetching process instances of banglore location(by variables [name as location and value as banglore])&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;STRONG style="background-color: #ffffff; color: #727174;"&gt;&lt;IMG alt="I am passing variable name as location and value as banglore" class="image-3 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/21685_screen5.png" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;STRONG style="background-color: #ffffff; color: #727174;"&gt;For this request I am getting following response[this location has 3 records[process instances] so I am getting those 3 records:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;STRONG style="background-color: #ffffff; color: #727174;"&gt;&lt;IMG alt="Response data for banglore location" class="image-4 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/21686_screen6.png" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;STRONG style="background-color: #ffffff; color: #727174;"&gt;Scenario 3: I want to fetch the process instances of these 2 locations [banglore and puna]. I am sending request as follows:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;STRONG style="background-color: #ffffff; color: #727174;"&gt;&lt;IMG alt="I am passing multiple variable names as location and value as puna and banglore" class="image-5 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/21687_screen3.png" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;STRONG style="background-color: #ffffff; color: #727174;"&gt;Ideally I should get the process instances of those 2 (bangloe and puna)locations. I should get 5 records&amp;nbsp; in the response. But I am not getting any records but still response code is 200. I am getting the response as follows:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;STRONG style="background-color: #ffffff; color: #727174;"&gt;&lt;IMG alt="Response data for multiple location[banglore and puna]" class="image-6 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/21688_screen4.png" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Why I am not getting the records if I pass multiple locations for variable value[Scenario 3]? Am I passing request in proper format or is there any other way to pass the multiple values for the variables for fetching the process instances?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 11:57:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20902#M9196</guid>
      <dc:creator>shilpak</dc:creator>
      <dc:date>2018-06-27T11:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the process instances by passing the multiple business key[processBusinessKey] values.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20903#M9197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The query will check for process instances that have&amp;nbsp;all the variables included in the request.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="" style="color: #333333; background-color: #f5f5f5; border: 1px solid #888888; margin: 0px 0px 20px; padding: 2px;"&gt;{"variables":[&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{"name":"foo","value":"bar","operation":"equals"},&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{"name": "location", "value":"US", "operation":"equals"}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;]&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;The above will return only processes that have both "foo" and "location" with the specified values.&amp;nbsp;The query uses&amp;nbsp;the "AND" clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a custom REST endpoint&amp;nbsp;that&amp;nbsp;uses &lt;A class="link-titled" href="https://www.activiti.org/javadocs/org/activiti/engine/history/historicprocessinstancequery" title="https://www.activiti.org/javadocs/org/activiti/engine/history/historicprocessinstancequery" rel="nofollow noopener noreferrer"&gt;HistoricProcessInstanceQuery (Activiti - Engine 5.22.0 API)&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="" style="color: #333333; background-color: #f5f5f5; border: 1px solid #888888; margin: 0px 0px 20px; padding: 2px;"&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;historyService&lt;/SPAN&gt;.createHistoricProcessInstanceQuery()&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.or()&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.variableValueEquals(&lt;SPAN class=""&gt;"location"&lt;/SPAN&gt;, "US")&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.endOr()&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.or()&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.&lt;SPAN style="background-color: #f5f5f5;"&gt;variableValueEquals(&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #f5f5f5;"&gt;"location"&lt;/SPAN&gt;&lt;SPAN style="background-color: #f5f5f5;"&gt;, "UK")&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.endOr()&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.list();&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 12:40:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20903#M9197</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-06-27T12:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the process instances by passing the multiple business key[processBusinessKey] values.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20904#M9198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created custom rest endpoint and added the query you suggested. But I am getting result as empty array even though I have records. &lt;STRONG&gt;I have written as follows:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;@Timed&lt;BR /&gt; @RequestMapping(value = "/processInstances/{id}", method= RequestMethod.GET)&lt;BR /&gt; public String processInstances(@PathVariable String id) {&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;List&amp;lt;HistoricProcessInstance&amp;gt; processes = historyService.createHistoricProcessInstanceQuery()&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;.or()&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;.variableValueEquals("location", "banglore")&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;.endOr()&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;.or()&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;.variableValueEquals("location", "puna")&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;.endOr()&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;.list();&lt;BR /&gt; System.out.println("processes are as follows:\n");&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;System.out.println("get class"+processes);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;return "INSIDE PROCESS INSTANCES..."+processes;&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 12:08:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20904#M9198</guid>
      <dc:creator>shilpak</dc:creator>
      <dc:date>2018-07-02T12:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the process instances by passing the multiple business key[processBusinessKey] values.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20905#M9199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad. The correct call should be like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="" style="color: #333333; background-color: #f5f5f5; border: 1px solid #888888; margin: 0px 0px 20px; padding: 2px;"&gt;&lt;P class="" style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;historyService&lt;/SPAN&gt;.createHistoricProcessInstanceQuery()&lt;/P&gt;&lt;P class="" style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.or()&lt;/P&gt;&lt;P class="" style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.variableValueEquals(&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;"location"&lt;/SPAN&gt;, "US")&lt;/P&gt;&lt;P class="" style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.&lt;SPAN style="background-color: #f5f5f5; border: 0px; font-weight: inherit;"&gt;variableValueEquals(&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #f5f5f5; border: 0px; font-weight: inherit;"&gt;"location"&lt;/SPAN&gt;&lt;SPAN style="background-color: #f5f5f5; border: 0px; font-weight: inherit;"&gt;, "UK")&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.endOr()&lt;/P&gt;&lt;P class="" style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.list();&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 13:02:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20905#M9199</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-07-02T13:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the process instances by passing the multiple business key[processBusinessKey] values.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20906#M9200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;B&gt;Bassam Al-Sarori&lt;/B&gt;‌. It is working propelry. I am getting process instances of different locations. I also want to pass&amp;nbsp;&lt;STRONG&gt;processDefinitionKey &lt;/STRONG&gt;in the query. Means it should check those locations and also should check for that&amp;nbsp;&lt;STRONG&gt;processDefinitionKey.&amp;nbsp;&lt;/STRONG&gt;And also I want number of records[number of process instances in the result]. Can you please provide solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 07:44:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20906#M9200</guid>
      <dc:creator>shilpak</dc:creator>
      <dc:date>2018-07-17T07:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the process instances by passing the multiple business key[processBusinessKey] values.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20907#M9201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can add the process definition key to query like this (outside or endOr)&lt;/P&gt;&lt;PRE class="" style="color: #333333; background-color: #f5f5f5; border: 1px solid #888888; margin: 0px 0px 20px; padding: 2px;"&gt;&lt;P class="" style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;historyService&lt;/SPAN&gt;.createHistoricProcessInstanceQuery()&lt;/P&gt;&lt;P class="" style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.processDefinitionKey("myKey")&lt;/P&gt;&lt;P class="" style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.or()&lt;/P&gt;&lt;P class="" style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.variableValueEquals(&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;"location"&lt;/SPAN&gt;, "US")&lt;/P&gt;&lt;P class="" style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.&lt;SPAN style="background-color: #f5f5f5; border: 0px; font-weight: inherit;"&gt;variableValueEquals(&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #f5f5f5; border: 0px; font-weight: inherit;"&gt;"location"&lt;/SPAN&gt;&lt;SPAN style="background-color: #f5f5f5; border: 0px; font-weight: inherit;"&gt;, "UK")&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.endOr()&lt;/P&gt;&lt;P class="" style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.list();&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;To get results count&amp;nbsp;you&amp;nbsp;can use count() instead of list()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 08:29:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20907#M9201</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-07-17T08:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the process instances by passing the multiple business key[processBusinessKey] values.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20908#M9202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. Is this possible to get response as list of records with size and total. Means I want all records and also the size and total number of records. Is this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 09:52:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20908#M9202</guid>
      <dc:creator>shilpak</dc:creator>
      <dc:date>2018-07-17T09:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the process instances by passing the multiple business key[processBusinessKey] values.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20909#M9203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Two queries will need to be executed. One for the count and another for the results. But&amp;nbsp;both can be returned in the same response. You can use&amp;nbsp;ResultListDataRepresentation&amp;lt;ProcessInstanceRepresentation&amp;gt; to get a similar response to what is returned by the standard REST query response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 10:13:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-the-process-instances-by-passing-the-multiple-business-key/m-p/20909#M9203</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-07-17T10:13:47Z</dc:date>
    </item>
  </channel>
</rss>

