[jboss-user] [JBoss jBPM] - compare ProcessDefinition's

SidKennedy do-not-reply at jboss.com
Mon Sep 17 11:12:39 EDT 2007


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085100#4085100

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085100



More information about the jboss-user mailing list