<?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: Is it possible to use REST to get current tasks for all users in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-use-rest-to-get-current-tasks-for-all-users/m-p/6649#M3227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;B&gt;David Robbins&lt;/B&gt;&amp;nbsp;,&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Is it possible to get all current tasks for all users via REST&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;You can get list of tasks by this REST API:&amp;nbsp;&lt;A class="link-titled" href="https://www.activiti.org/userguide/#restTasksGet" title="https://www.activiti.org/userguide/#restTasksGet" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Example:&amp;nbsp;&lt;A href="http://localhost:8081/activiti-rest/service/runtime/tasks?processInstanceId=8137" style="color: #2989c5;" title="http://localhost:8081/activiti-rest/service/runtime/tasks?processInstanceId=8137" rel="nofollow noopener noreferrer"&gt;http://localhost:8081/activiti-rest/service/runtime/tasks?processInstanceId=&lt;/A&gt;&lt;SPAN style="color: #3d3d3d;"&gt;{instanceid} (from the user guide, you can provide many other query parameters in the REST call)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Out goal is to create page where managers can identify how many workflows are in process and what phase they are in&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;You need a drill-down dashboard&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;First, you need to retrieve all the instances by:&amp;nbsp;&lt;A class="link-titled" href="http://localhost:8081/activiti-rest/service/runtime/process-instances" title="http://localhost:8081/activiti-rest/service/runtime/process-instances" rel="nofollow noopener noreferrer"&gt;http://localhost:8081/activiti-rest/service/runtime/process-instances&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;Then, upon clicking on a single instance to drill down to see where is the execution, tasks, etc.:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;Process instance:&amp;nbsp;&lt;A href="http://localhost:8081/activiti-rest/service/runtime/process-instances" style="color: #2989c5; background-color: #ffffff;" title="http://localhost:8081/activiti-rest/service/runtime/process-instances" rel="nofollow noopener noreferrer"&gt;http://localhost:8081/activiti-rest/service/runtime/process-instances&lt;/A&gt;/{instanceid}&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;Tasks within this process instance: (&lt;A class="link-titled" href="https://www.activiti.org/userguide/#restTasksGet" title="https://www.activiti.org/userguide/#restTasksGet" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;A class="link-titled" href="http://localhost:8081/activiti-rest/service/runtime/tasks?processInstanceId=8137" title="http://localhost:8081/activiti-rest/service/runtime/tasks?processInstanceId=8137" rel="nofollow noopener noreferrer"&gt;http://localhost:8081/activiti-rest/service/runtime/tasks?processInstanceId=&lt;/A&gt;{instanceid}&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;Other details&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;These managers do NOT participate in the workflows&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;The manager accounts need to have enough privileges to call most API calls (view instances, view instance, view task details). Have manager accounts associated with 'management' group. Have a look at ACT_ID_GROUP and ACT_ID_MEMBERSHIP tables. Also have a look at how activiti-explorer implements gonzo user as a manager within management group&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;Thong Huynh&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Feb 2017 04:42:57 GMT</pubDate>
    <dc:creator>thuynh</dc:creator>
    <dc:date>2017-02-14T04:42:57Z</dc:date>
    <item>
      <title>Is it possible to use REST to get current tasks for all users</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-use-rest-to-get-current-tasks-for-all-users/m-p/6648#M3226</link>
      <description>Is it possible to get all current tasks for all users via REST.&amp;nbsp; Our environment is Community Edition 5.2.2.While I know it is possible to get all tasks for a currently authenticated user with the following REST call:http://localhost:8080/alfresco/service/api/task-instances&amp;nbsp;&amp;nbsp;I need to be query curre</description>
      <pubDate>Mon, 13 Feb 2017 19:31:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-use-rest-to-get-current-tasks-for-all-users/m-p/6648#M3226</guid>
      <dc:creator>dhrobbins</dc:creator>
      <dc:date>2017-02-13T19:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use REST to get current tasks for all users</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-use-rest-to-get-current-tasks-for-all-users/m-p/6649#M3227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;B&gt;David Robbins&lt;/B&gt;&amp;nbsp;,&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Is it possible to get all current tasks for all users via REST&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;You can get list of tasks by this REST API:&amp;nbsp;&lt;A class="link-titled" href="https://www.activiti.org/userguide/#restTasksGet" title="https://www.activiti.org/userguide/#restTasksGet" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Example:&amp;nbsp;&lt;A href="http://localhost:8081/activiti-rest/service/runtime/tasks?processInstanceId=8137" style="color: #2989c5;" title="http://localhost:8081/activiti-rest/service/runtime/tasks?processInstanceId=8137" rel="nofollow noopener noreferrer"&gt;http://localhost:8081/activiti-rest/service/runtime/tasks?processInstanceId=&lt;/A&gt;&lt;SPAN style="color: #3d3d3d;"&gt;{instanceid} (from the user guide, you can provide many other query parameters in the REST call)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Out goal is to create page where managers can identify how many workflows are in process and what phase they are in&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;You need a drill-down dashboard&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;First, you need to retrieve all the instances by:&amp;nbsp;&lt;A class="link-titled" href="http://localhost:8081/activiti-rest/service/runtime/process-instances" title="http://localhost:8081/activiti-rest/service/runtime/process-instances" rel="nofollow noopener noreferrer"&gt;http://localhost:8081/activiti-rest/service/runtime/process-instances&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;Then, upon clicking on a single instance to drill down to see where is the execution, tasks, etc.:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;Process instance:&amp;nbsp;&lt;A href="http://localhost:8081/activiti-rest/service/runtime/process-instances" style="color: #2989c5; background-color: #ffffff;" title="http://localhost:8081/activiti-rest/service/runtime/process-instances" rel="nofollow noopener noreferrer"&gt;http://localhost:8081/activiti-rest/service/runtime/process-instances&lt;/A&gt;/{instanceid}&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;Tasks within this process instance: (&lt;A class="link-titled" href="https://www.activiti.org/userguide/#restTasksGet" title="https://www.activiti.org/userguide/#restTasksGet" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;A class="link-titled" href="http://localhost:8081/activiti-rest/service/runtime/tasks?processInstanceId=8137" title="http://localhost:8081/activiti-rest/service/runtime/tasks?processInstanceId=8137" rel="nofollow noopener noreferrer"&gt;http://localhost:8081/activiti-rest/service/runtime/tasks?processInstanceId=&lt;/A&gt;{instanceid}&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;Other details&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;These managers do NOT participate in the workflows&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;The manager accounts need to have enough privileges to call most API calls (view instances, view instance, view task details). Have manager accounts associated with 'management' group. Have a look at ACT_ID_GROUP and ACT_ID_MEMBERSHIP tables. Also have a look at how activiti-explorer implements gonzo user as a manager within management group&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;Thong Huynh&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2017 04:42:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-use-rest-to-get-current-tasks-for-all-users/m-p/6649#M3227</guid>
      <dc:creator>thuynh</dc:creator>
      <dc:date>2017-02-14T04:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use REST to get current tasks for all users</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-use-rest-to-get-current-tasks-for-all-users/m-p/6650#M3228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thong, thank you for the very detailed answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2017 11:06:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-use-rest-to-get-current-tasks-for-all-users/m-p/6650#M3228</guid>
      <dc:creator>dhrobbins</dc:creator>
      <dc:date>2017-02-14T11:06:10Z</dc:date>
    </item>
  </channel>
</rss>

