How can I select a Sequence Diagram inside the <ForEachSubDiagram>-Tag?

Hello,

I have the following problem while generating a report with the report writer using an customized xml-file:

I am generation the documentation of an Use Case Diagram that contains an Use Case with several sub diagrams.

Inside the xml-file I select each of the sub diagrams of the Use Case using the -Tag with the property diagramtype.

This works fine for the following diagramtypes:
ActivityDiagram
BusinessProcessDiagram
ClassDiagram
UserInterfaceDiagram

Only the SequenceDiagram cannot be found.

Part of the xml-file:

<ElementBaseInitiationBlock>
	<ForEachSubDiagram diagramType="BusinessProcessDiagram">
		<!-- diagram will be displayed in the generated report-->
		<StaticText content = "Überblick (Business Process Diagram)" style = "Heading 2 (VP)"/>	
		<ParagraphBreak/>
		<StaticText content = "" style = "Default"/>
		<ElementImage imageType = "diagram" alignment = "center"/>
		<ParagraphBreak/>
		<StaticText content="" style="Default"/>						
	</ForEachSubDiagram>
</ElementBaseInitiationBlock>

<ElementBaseInitiationBlock>
	<ForEachSubDiagram diagramType="ActivityDiagram">
		<!-- diagram will be displayed in the generated report-->
		<StaticText content = "Überblick (Activity Diagram)" style = "Heading 2 (VP)"/>	
		<ParagraphBreak/>
		<StaticText content = "" style = "Default"/>
		<ElementImage imageType = "diagram" alignment = "center"/>
		<ParagraphBreak/>
		<StaticText content="" style="Default"/>						
	</ForEachSubDiagram>
</ElementBaseInitiationBlock>

<ElementBaseInitiationBlock>
	<ForEachSubDiagram diagramType="SequenceDiagram">
		<!-- diagram will not be displayed in the generated report-->
		<StaticText content = "Überblick (Sequence Diagram)" style = "Heading 2 (VP)"/>	
		<ParagraphBreak/>
		<StaticText content = "" style = "Default"/>
		<ElementImage imageType = "diagram" alignment = "center"/>
		<ParagraphBreak/>
		<StaticText content="" style="Default"/>	
	</ForEachSubDiagram>
</ElementBaseInitiationBlock>

If I use the -Tag without the property diagramType all sub diagrams inclusive the Sequence Diagram are generated into the report.

<ElementBaseInitiationBlock>
	<ForEachSubDiagram>
		<!-- all sub diagrams will be displayed in the generated report-->
		<StaticText content = "Überblick (Diagramme)" style = "Heading 2 (VP)"/>	
		<ParagraphBreak/>
		<StaticText content = "" style = "Default"/>
		<ElementImage imageType = "diagram" alignment = "center"/>
		<ParagraphBreak/>
		<StaticText content = "" style = "Default"/>
	</ForEachSubDiagram>
</ElementBaseInitiationBlock>

Question:
Which diagramType must be used to select a Sequence Diagram.

Seems to be an easy question, but I did not find out!

Thanks in advance
KOK

Hi KOK,

Thanks for your post. I’ve forwarded your issue to our engineers to check and I’ll come back to you once there is any feedback.

Best regards,
Lilian Wong

Hi KOK,

I’m sorry for my late response. The problem is that diagramType of “Sequence Diagram” is “InteractionDiagram”. We enhanced to accept SequenceDiagram for InteractionDiagram
By the way, you may check the template “SequenceDiagrams.xml” in VPSuite/resources/Report/Default/VPProject/ folder (as image), the ForEachDiagram tag refers to “InteractionDiagram”:

You may check other diagram types in other “${diagram_type}Diagrams.xml” templates there too.

Please run “VP Suite Update” in order to update to update to patch build sp1_20100224a (or later) for the enhancement. Details about updating to latest patch are available at:

By the way, you don’t need to add for each in template. Please let me know if you have any other question.

Best regards,
Lilian Wong


SequenceDiagrams.xml_in_VPProject_folder.png