wm.prt.duplicate:checkDuplicates is for detecting duplicate documents deliver to the process engine, I doubt it will help in detecting duplictae values inside a document.
Afaik there is no build in service for this. Depending on the requirements a Java service like the posted example may help. There could also be a resolution in using xslt or the pub.xml:queryXMLNode service, but I have no working example for that.
A way the pre may help: If the single entries are posted as single documents using a procees with a correlation may be a solution, as documents with a correlation id matchig an existing processed are joined into this or rejected if the process is already finished.
Interesting … This is the first thing off the top of my head, so it may not be the most elegant solution:
1 - sort the DocList with: IDataUtil.sortIDataArrayByKey
2 - LOOP over the sortedDocList and copy to a new sortedUniqueDocList with a copy condition that only copies that document if the newValue is not equal to oldValue.