4 Replies Latest reply on Sep 18, 2007 3:19 AM by sidkennedy

    compare ProcessDefinition's

    sidkennedy

      Hello again,
      how would you compare two ProcessDefinition? That's what I'm doing: I have a processdefinition.xml. It is parsed and a ProcessDefinition is created. This ProcessDefinition will be added to a list. Now it should not be possible to add the same ProcessDefinition to that list, but as I call JpdlXmlReader#readProcessDefinition() a "new" ProcessDefinition is created but of the same Process if it is called on the same processdefinition.xml. How would you compare those processes? equals() always returns false as you can imagine. So maybe a possibility is to compare the lists via ProcessDefinition#getNodes() but it is possible to add some additional data to a action-tag for example. So I want to here what do you think about that issue.

      greets
      Sid