[ReportWriter] iterate over Elements and omit duplicates

Hello!

The report templates used in ReportWriter must be valid against the template_schema.xsd in /resources/Report/Default.
In this XSD I have not found any information, whether it`s possible to omit duplicate elements or diagrams in generated reports.

For example consider following tree structure of a BPMN-Diagramm:

BPMN-Diagram-Root
-Pool1
–Sub-Process-Task1
—BPMN-Sub-Diagram of Sub-Process-Task1
----…(Elements of BPMN-Sub-Diagram of Sub-Process-Task1)
–Task1
–Sub-Process-Task2
—BPMN-Sub-Diagram of Sub-Process-Task2
----…(Elements of BPMN-Sub-Diagram of Sub-Process-Task2)
–Task2
–Sub-Process-Task1
—BPMN-Sub-Diagram of Sub-Process-Task1
----…(Elements of BPMN-Sub-Diagram of Sub-Process-Task1)

-Pool2
-…

In this example the bold marked “Sub-Process-Task1” and it`s children are duplicates. In the recursive functions (“ForEach”,…) there is no such flag to omit these duplicate elements or diagrams, e.g. the bold marked diagram “BPMN-Sub-Diagram of Sub-Process-Task1”.

Any suggestions would be appreciated.

Thanks chris.