Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-5328

Unique ID gets duplicated when adding new nodes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • Eclipse
    • NEW
    • NEW
    • Hide
      1. Start Eclipse and add two nodes to a bpmn file. Notice that they will get unique id 0 and 1 respectively.
      2. Restart Eclipse and add a new node to the same file and connect them in a sequence. Notice that this will get unique id 0 (duplicate!)
      3. Save the file and close it.
      4. Try to reopen the file, get an error message saying that a node can't have that many connections since we have two nodes with the same id.
      Show
      Start Eclipse and add two nodes to a bpmn file. Notice that they will get unique id 0 and 1 respectively. Restart Eclipse and add a new node to the same file and connect them in a sequence. Notice that this will get unique id 0 (duplicate!) Save the file and close it. Try to reopen the file, get an error message saying that a node can't have that many connections since we have two nodes with the same id.

    Description

      It seems as the "unique id" counter is reset to 0 each time Eclipse is started, which creates duplicate ids when restarting Eclipse and continuing in the same file.

      Line 82 might be of interest: https://github.com/droolsjbpm/jbpm/blob/master/jbpm-flow/src/main/java/org/jbpm/workflow/core/impl/NodeImpl.java

      Attachments

        Activity

          People

            bbrodt_jira Robert (Bob) Brodt (Inactive)
            jonasle Jonas Le (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: