Hi all,
I've run into a problem concerning element ordering when generating RTF reports. My area of modelling is BPMN, but it probably applies to other modelling as well.
Situation: RTF report from BPMN models with composite elements, containing diagrams and elements.
Needed behaviour: recursion into child elements, but display all elements on top level first, then child elements.
This problem is a bit tricky to explain; I'll try with an example:
the top-diagram has two elements A and B. A is composite and has a diagram and an element C as children, like this:
top-diagram
|---A
| |--child diagram
| |--C
|---B
Now when I make an RTF report, the top diagram is shown, and an element list starting with element A. I'd like element B to be shown directly after this, but instead the child diagram and element C appear. The order is thus ACB instead of ABC (which even the young Michael Jackson [R.I.P.] knew was better :-) )
The only way I've found to avoid this is to put the child diagram in a separate package. This would, however, introduce many new packages in my model where they aren't needed - the structure is clear without them. I also got the suggestion to render diagrams and elements in separate reports, but I don't see how that'd solve the ordering problem - in most cases it'd also make it harder finding a specific element from a diagram. Any ideas on how to solve this?