<?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: WorkflowService and SortOrder in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/workflowservice-and-sortorder/m-p/14316#M6278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I do not have this kind of Customer on hand &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Nov 2017 14:46:19 GMT</pubDate>
    <dc:creator>vincent-kali</dc:creator>
    <dc:date>2017-11-02T14:46:19Z</dc:date>
    <item>
      <title>WorkflowService and SortOrder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflowservice-and-sortorder/m-p/14312#M6274</link>
      <description>Dear all,I'm&amp;nbsp;using the WorkflowService JAVA API to write a web service that returns&amp;nbsp;a list of workflow instances matching a set of criterias. The response is displayed in an aikau page using traditional paginated list components.I note that WorkflowService has a method "getWorflows" accepting 'maxIt</description>
      <pubDate>Thu, 02 Nov 2017 11:48:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflowservice-and-sortorder/m-p/14312#M6274</guid>
      <dc:creator>vincent-kali</dc:creator>
      <dc:date>2017-11-02T11:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: WorkflowService and SortOrder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflowservice-and-sortorder/m-p/14313#M6275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the Alfresco API you cannot sort the workflows. You'd have to circumvent it and use Activiti API directly (which of course is not recommended by Alfresco). The default sort order is by process instance duration, so the time that the workflow has been running, but only if a maxItems higher than 0 has been specified.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:16:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflowservice-and-sortorder/m-p/14313#M6275</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-11-02T12:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: WorkflowService and SortOrder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflowservice-and-sortorder/m-p/14314#M6276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks axel. I'll check Activiti API.&lt;/P&gt;&lt;P&gt;Any plan to make this feature available in public API in a near&amp;nbsp;feature ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 13:13:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflowservice-and-sortorder/m-p/14314#M6276</guid>
      <dc:creator>vincent-kali</dc:creator>
      <dc:date>2017-11-02T13:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: WorkflowService and SortOrder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflowservice-and-sortorder/m-p/14315#M6277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not an Alfresco Engineer, so I can't give a reliable / official answer. But considering that Alfresco is considering to move the workflow engine completely out of the Repository at some point in the future, I would not bet on it. It has also been this way for years,&amp;nbsp;so you'd have to find an extremely influential, paying customer to convince Alfresco to change it now....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:26:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflowservice-and-sortorder/m-p/14315#M6277</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-11-02T14:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: WorkflowService and SortOrder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflowservice-and-sortorder/m-p/14316#M6278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I do not have this kind of Customer on hand &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:46:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflowservice-and-sortorder/m-p/14316#M6278</guid>
      <dc:creator>vincent-kali</dc:creator>
      <dc:date>2017-11-02T14:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: WorkflowService and SortOrder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflowservice-and-sortorder/m-p/14317#M6279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For those who are interested in, the code is here:&lt;/P&gt;&lt;P&gt;org.alfresco.repo.workflow.activiti.ActivitiWorkflowEngine, method 'getWorkflowsInternal'&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;query.orderByProcessInstanceDuration().&lt;SPAN style="text-decoration: underline;"&gt;desc&lt;/SPAN&gt;().listPage(skipCount, maxItems);&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;and doc: &lt;A href="https://www.activiti.org/javadocs/org/activiti/engine/history/HistoricProcessInstanceQuery.html" rel="nofollow noopener noreferrer"&gt;https://www.activiti.org/javadocs/org/activiti/engine/history/HistoricProcessInstanceQuery.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I can't see the default sortOrder where no pagination is requested... ?&lt;/P&gt;&lt;P&gt;And what would be the correct way to write a new implementation of&amp;nbsp;WorkflowEngine with additional sorting capabilities ? (how to make it working with current wf services?)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 16:05:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflowservice-and-sortorder/m-p/14317#M6279</guid>
      <dc:creator>vincent-kali</dc:creator>
      <dc:date>2017-11-02T16:05:02Z</dc:date>
    </item>
  </channel>
</rss>

