<?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 diagram unique Id generation issue in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/diagram-unique-id-generation-issue/m-p/45949#M25682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had noticed that sometimes, when I've been working on multiple Activiti diagrams across multiple days, that the unique Ids generated for the workflow objects will overlap and repeat. The diagram compiles, but when I try to later run the process the engine complains that there are multiple workflow elements with the same id (i.e. two sequenceFlows both with id="flow12"). And if I inadvertently delete one of the repeated elements via right-click-delete or trash-ban, it screws up the diagram …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here might be a way to recreate the issue …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) assume any id counter starting point, i.e. X = 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) create diagram D1,&amp;nbsp;&amp;nbsp; start –&amp;gt; manual task 1 –&amp;gt; manual task 2 –&amp;gt; end&amp;nbsp;&amp;nbsp; .&amp;nbsp; The unique id counter is at X + 3 (i.e. id="flow3"). Save the diagram. Close diagram.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) create diagram D2, also same process&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; start –&amp;gt; manual task 1 –&amp;gt; manual task 2 –&amp;gt; end.&amp;nbsp; The unique id counter should be at X + 6 (i.e. id="flow6"). Save diagram. Close diagram.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) reopen D1,&amp;nbsp;&amp;nbsp; add a sequenceFlow from manual task 1 to end twice (delete one, then add it again).&amp;nbsp;&amp;nbsp; The unique id counter should be at X + 8 (i.e. id="flow8"). Save diagram. Close diagram.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5) close and reopen eclipse&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is where I started getting some issues …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;6) reopen D2,&amp;nbsp;&amp;nbsp; add a sequenceFlow from manual task 1 to end. The unique id counter is at X + 7 … I guess because last time D2's max id was X + 6. Save and close D2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7) reopen D1,&amp;nbsp;&amp;nbsp;&amp;nbsp; delete any&amp;nbsp; sequenceFlow and re-add it. The unique id counter is at X + 8 … I guess because it was just at X + 7?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; now, D1 has two instances of X + 8 (i.e. id="flow8") …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've often juggled working on multiple processes at the same time … and it definitely takes me more than a single sitting to finish some processes. The result is that these duplications sometimes get so bad that I have to give up on fixing the xml and just start the diagram over from scratch …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've noticed this issue since release 5.2 (I started in 5.0 but my processes weren't so complicated then and thus issue probably never had a chance to manifest) but I have no clue why it's happening … &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a bug in the designer plugin? Or my eclipse environment? Or just that my workstation hates me&amp;nbsp; :cry: ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(currently running on Activiti Eclipse BPMN 2.0 Designer 5.4.0&amp;nbsp;&amp;nbsp; on&amp;nbsp;&amp;nbsp;&amp;nbsp; Eclipse helios for JavaEE - 3.6.2 )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Apr 2011 20:34:34 GMT</pubDate>
    <dc:creator>yangyang_qian</dc:creator>
    <dc:date>2011-04-07T20:34:34Z</dc:date>
    <item>
      <title>diagram unique Id generation issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/diagram-unique-id-generation-issue/m-p/45949#M25682</link>
      <description>I had noticed that sometimes, when I've been working on multiple Activiti diagrams across multiple days, that the unique Ids generated for the workflow objects will overlap and repeat. The diagram compiles, but when I try to later run the process the engine complains that there are multiple workflow</description>
      <pubDate>Thu, 07 Apr 2011 20:34:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/diagram-unique-id-generation-issue/m-p/45949#M25682</guid>
      <dc:creator>yangyang_qian</dc:creator>
      <dc:date>2011-04-07T20:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: diagram unique Id generation issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/diagram-unique-id-generation-issue/m-p/45950#M25683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;so it seems i am not alone &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;A href="http://forums.activiti.org/en/viewtopic.php?f=8&amp;amp;t=1370" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=8&amp;amp;t=1370&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 08:20:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/diagram-unique-id-generation-issue/m-p/45950#M25683</guid>
      <dc:creator>mlisiewicz</dc:creator>
      <dc:date>2011-04-08T08:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: diagram unique Id generation issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/diagram-unique-id-generation-issue/m-p/45951#M25684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;oy,&amp;nbsp; &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;&amp;nbsp; glad I'm not just going crazy. Currently my workaround is to be very very very careful to only edit the first activiti diagram that I open during any single Eclipse session; I try to avoid touching the other diagrams until I've closed and reopened eclipse.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 14:41:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/diagram-unique-id-generation-issue/m-p/45951#M25684</guid>
      <dc:creator>yangyang_qian</dc:creator>
      <dc:date>2011-04-08T14:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: diagram unique Id generation issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/diagram-unique-id-generation-issue/m-p/45952#M25685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for reporting this bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There was something wrong with the caching solution for identifiers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've modified it and uploaded a new archived update site to &lt;/SPAN&gt;&lt;A href="http://www.activiti.org/designer/archived/activiti-designer-5.4.1.zip" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/designer/archived/activiti-designer-5.4.1.zip&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if this solves your problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 22:17:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/diagram-unique-id-generation-issue/m-p/45952#M25685</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-04-08T22:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: diagram unique Id generation issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/diagram-unique-id-generation-issue/m-p/45953#M25686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I reinstalled the Activiti Designer using the new 5.4.1 zip provided by the link mentioned in the previous post … but still got the same error. I noticed that the minor version # still seems to be 5.4.0 instead of 5.4.1 in the install dialog. Was the new zip supposed to hold a "5.4.0" designer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry about the delayed response, we only had a chance to try out the fix just now.&amp;nbsp; &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;ops:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way, I don't know if this is a related issue … but when I reinstalled Designer and reopened one of the process diagrams we are currently working on as part of the test … found a similar issue when adding a new sequenceFlow … the ID stared at id="flow9", but our diagram's set of sequenceFlows has the ids in the following listing. I was expecting the new Id to be&amp;nbsp;&amp;nbsp;&amp;nbsp; diagramUniqueIDs.maxId + 1&amp;nbsp; ? Or maybe I just don't understand the algorithm for the unique id generation …&amp;nbsp; &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;flow37&lt;BR /&gt;flow38&lt;BR /&gt;flow39&lt;BR /&gt;flow40&lt;BR /&gt;flow41&lt;BR /&gt;&lt;BR /&gt;flow44&lt;BR /&gt;&lt;BR /&gt;flow47&lt;BR /&gt;flow48&lt;BR /&gt;flow49&lt;BR /&gt;&lt;BR /&gt;flow51&lt;BR /&gt;&lt;BR /&gt;flow53&lt;BR /&gt;flow54&lt;BR /&gt;flow55&lt;BR /&gt;flow56&lt;BR /&gt;flow57&lt;BR /&gt;flow58&lt;BR /&gt;flow59&lt;BR /&gt;flow60&lt;BR /&gt;flow61&lt;BR /&gt;flow62&lt;BR /&gt;flow63&lt;BR /&gt;flow64&lt;BR /&gt;flow65&lt;BR /&gt;flow66&lt;BR /&gt;flow67&lt;BR /&gt;flow68&lt;BR /&gt;flow69&lt;BR /&gt;&lt;BR /&gt;flow71&lt;BR /&gt;flow72&lt;BR /&gt;flow73&lt;BR /&gt;flow74&lt;BR /&gt;flow75&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 16:06:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/diagram-unique-id-generation-issue/m-p/45953#M25686</guid>
      <dc:creator>yangyang_qian</dc:creator>
      <dc:date>2011-04-14T16:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: diagram unique Id generation issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/diagram-unique-id-generation-issue/m-p/45954#M25687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the detailed response. The version was still 5.4.0, because the 5.4.1. archived site was just a quick deployment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You say the problem persists, but have you checked if there is a flow with flow9 already in the diagram.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you provide me with your diagram, because a new seuqence flow should the max id + 1. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please attach the .activiti to your post in this forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 20:50:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/diagram-unique-id-generation-issue/m-p/45954#M25687</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-04-14T20:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: diagram unique Id generation issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/diagram-unique-id-generation-issue/m-p/45955#M25688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, just to clarify, for the main test, I just followed the steps outlined in the first post and still got the same issue with the duplicate flow ids.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After I ran the tests and made the post, I restarted eclipse (still with the 5.4.1 plugin installed) and was planning on working my old process diagram, when I noticed that a new squenceFlow started at flow9. Flow9 is definitely not in the diagram, but I worry that (a) this is a symptom of the existing issue and (b) after a few dev cycles the id increments will start overlapping with the existing objects. I restored to a copy of eclipse from backup (the one with the 5.4.0 plugin) and the ids started at max + 1 again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I only noticed the flow9 issue after the main test, and therefore am not sure if it is a related symptom.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; :lol: I can't seem to upload an .activiti file directly … I stashed it in the zip file&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 14:32:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/diagram-unique-id-generation-issue/m-p/45955#M25688</guid>
      <dc:creator>yangyang_qian</dc:creator>
      <dc:date>2011-04-15T14:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: diagram unique Id generation issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/diagram-unique-id-generation-issue/m-p/45956#M25689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tested the case of adding a new sequence flow in your activiti diagram and my sequenceflow gets an id of flow76.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So that seems to be fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you make sure that you install the 5.4.1 archived site on a fresh Eclipse installation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then this should work. Let me know if you still run into issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Apr 2011 08:01:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/diagram-unique-id-generation-issue/m-p/45956#M25689</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-04-16T08:01:22Z</dc:date>
    </item>
  </channel>
</rss>

