<?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: orderByProcessInstanceId() in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/orderbyprocessinstanceid/m-p/83822#M56348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What is the exact need for you to order it by process-instance ID? Process-start Timing?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I'm customizing the explorer to have inbox tasks ordered by start time of their process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If i sort them manually the pagination of tasks will be wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any tricks to start the ids of execution from 1000000 instead of 1 ? This should workaround the problem for 9000000 ids &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;emiliano&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2012 08:34:00 GMT</pubDate>
    <dc:creator>emiliano</dc:creator>
    <dc:date>2012-10-23T08:34:00Z</dc:date>
    <item>
      <title>orderByProcessInstanceId()</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/orderbyprocessinstanceid/m-p/83820#M56346</link>
      <description>Hi,I would like to retrieve the list of Tasks owned by a particular user ordered by their processInstanceId, so i have used:taskService.createTaskQuery().taskAssignee(userId).orderByProcessInstanceId().asc()‍‍‍Unfortunately I found that the order isn't respected, the task with the processInstanceId</description>
      <pubDate>Tue, 23 Oct 2012 08:11:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/orderbyprocessinstanceid/m-p/83820#M56346</guid>
      <dc:creator>emiliano</dc:creator>
      <dc:date>2012-10-23T08:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: orderByProcessInstanceId()</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/orderbyprocessinstanceid/m-p/83821#M56347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's indeed a consequence of using ID's of type String. I'm afraid there is no workaround for this, other than sorting manually. However, the ID is an arbitrary number and by coincidence, the numbers increment trough time. When using the UUID-approach, these ID's don't increment the same way. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the exact need for you to order it by process-instance ID? Process-start Timing?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 08:15:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/orderbyprocessinstanceid/m-p/83821#M56347</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-23T08:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: orderByProcessInstanceId()</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/orderbyprocessinstanceid/m-p/83822#M56348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What is the exact need for you to order it by process-instance ID? Process-start Timing?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I'm customizing the explorer to have inbox tasks ordered by start time of their process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If i sort them manually the pagination of tasks will be wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any tricks to start the ids of execution from 1000000 instead of 1 ? This should workaround the problem for 9000000 ids &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;emiliano&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 08:34:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/orderbyprocessinstanceid/m-p/83822#M56348</guid>
      <dc:creator>emiliano</dc:creator>
      <dc:date>2012-10-23T08:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: orderByProcessInstanceId()</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/orderbyprocessinstanceid/m-p/83823#M56349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can alter the value of "next.dbid" in ACT_GE_PROPERTY after the engine is initialized and shut down. The next time the engine boots, the ID's will start from there…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can't you use the task-create-time?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 08:36:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/orderbyprocessinstanceid/m-p/83823#M56349</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-23T08:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: orderByProcessInstanceId()</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/orderbyprocessinstanceid/m-p/83824#M56350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can alter the value of "next.dbid" in ACT_GE_PROPERTY after the engine is initialized and shut down. The next time the engine boots, the ID's will start from there…&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Excellent, thanks a lot, i'll try it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can't you use the task-create-time?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;My Customer wants the list of tasks sorted by process creation time, so I've to respect its wishes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;emiliano&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 08:58:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/orderbyprocessinstanceid/m-p/83824#M56350</guid>
      <dc:creator>emiliano</dc:creator>
      <dc:date>2012-10-23T08:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: orderByProcessInstanceId()</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/orderbyprocessinstanceid/m-p/83825#M56351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;My Customer wants the list of tasks sorted by process creation time, so I've to respect its wishes.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Then use the historyService to fetch the HistoricProcessInstance of your ProcessInstance. That one has a start date.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 21:45:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/orderbyprocessinstanceid/m-p/83825#M56351</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-10-23T21:45:09Z</dc:date>
    </item>
  </channel>
</rss>

