<?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 Request on history doesn't follow logic flow order but Xml sequence order in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/request-on-history-doesn-t-follow-logic-flow-order-but-xml/m-p/194308#M147438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've noticed something strange.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When you modify your BPMN XML using the Activiti Model Editor (in Eclipse), for example if you insert an user task before the rest of the existing flow, the XML tag of new entity is added at the end of the XML.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's not a problem because the targetRef and sourceRef of sequenceFlows let the engine find the correct flow order.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But some API apparently don't.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, this piece of code works but gives list of unfinished tasks not in logic flow order, but in order in which they appear in the BPMN XML :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;List&amp;lt;HistoricActivityInstance&amp;gt;&amp;nbsp; tList = &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; MyHistoryService.createHistoricActivityInstanceQuery() &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; .processDefinitionId(MyProcessInstance.getProcessDefinitionId())&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; .unfinished()&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; .list();&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've fixed modifiying by hand my XML and make the sequential order of XML tags matching the flow logic order.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that normal, or have I made a mistake somewhere ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2014 09:29:08 GMT</pubDate>
    <dc:creator>cnirparis</dc:creator>
    <dc:date>2014-06-18T09:29:08Z</dc:date>
    <item>
      <title>Request on history doesn't follow logic flow order but Xml sequence order</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/request-on-history-doesn-t-follow-logic-flow-order-but-xml/m-p/194308#M147438</link>
      <description>I've noticed something strange.When you modify your BPMN XML using the Activiti Model Editor (in Eclipse), for example if you insert an user task before the rest of the existing flow, the XML tag of new entity is added at the end of the XML.It's not a problem because the targetRef and sourceRef of s</description>
      <pubDate>Wed, 18 Jun 2014 09:29:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/request-on-history-doesn-t-follow-logic-flow-order-but-xml/m-p/194308#M147438</guid>
      <dc:creator>cnirparis</dc:creator>
      <dc:date>2014-06-18T09:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Request on history doesn't follow logic flow order but Xml sequence order</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/request-on-history-doesn-t-follow-logic-flow-order-but-xml/m-p/194309#M147439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, that list has nothing to do with the model. It gives you the activities in order of which they are entered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have a simple unit test that demonstrates what you are seeing?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 13:29:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/request-on-history-doesn-t-follow-logic-flow-order-but-xml/m-p/194309#M147439</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-06-27T13:29:59Z</dc:date>
    </item>
  </channel>
</rss>

