Customizing Report Writer

Hello!

I’m trying to customize the Report Writer to do the following:

Imagine a Business Process Diagram as shown in the attached image. The implied tree-structure of the diagram’s elements would be:
–Diagram
----Pool
------Group
--------Task
(Pool is a child of the diagram, group is a child of pool, …)

The actual tree-structure of the diagram’s element is:
–Diagram
----Pool
------Task
----Group
(Group is a child of the diagram, not a child of Pool)

I want to represent the given structure as implied by the diagram (not the actual) in the report writer. I tried the following, but it didn’t work of course.

<?xml version="1.0" encoding="UTF-8"?>
<Template>
	<TemplateInformationHeader name="Review Test" description="/" type="table" default="false"/>
	<DiagramBaseInitiationBlock>
		<StaticText content = "Business Process Diagram : " style = "Heading 1 (VP)"/>
		<StringPropertyText propertyText = "name" style = "Heading 1 (VP)"/>
		<ParagraphBreak/>
		<!-- Diagram Image -->
		<StaticText content="" style="Default"/>
		
		<!-- CHILDREN BEGIN -->
		<HasChildElementChecker flag="true">
			<!-- POOLS -->
			<IterationBlock modelType="BPPool" allLevel="true">
				<StaticText content="Pool : " style="Heading 2 (VP)" />
				<StringPropertyText propertyText = "name" style = "Heading 2 (VP)"/>
				<ParagraphBreak/>
				
				<HasChildElementChecker flag="true">
					<StaticText content="Children : " style="Heading 2 (VP)" />
					<ParagraphBreak/>
					<IterationBlock modelType="BPGroup" allLevel="true">
						<StaticText content="Group : " style="Heading 3 (VP)" />
						<StringPropertyText propertyText = "name" style = "Heading 3 (VP)"/>
					</IterationBlock>
				</HasChildElementChecker>
			</IterationBlock>
			<StaticText content="" style="Default"/>
			<ParagraphBreak/>
			
		</HasChildElementChecker>
		<!-- CHILDREN END -->
		<StaticText content="" style="Default"/>
		
	</DiagramBaseInitiationBlock>
</Template>

Is it even possible to do this?

Thanks in advance!
-cbarth
BPD_01.jpg

Hi Cbarth,

Thanks for your post and this issue is forwarded to our engineers. I’ll let you know once there is any feedback from our engineers.

Best regards,
Lilian Wong

Hi Cbarth,

Sorry for my late response. Attached you can find a sample template for generate details as tree-structure of diagram elements, please place it in VPSuite/resources/Report/Default/BusinessProcessDiagram folder.

Hope this helps. Please feel free to ask if there is anything else I can do to help.

Best regards,
Lilian Wong
ChildrenInBounds.xml

Hello LilianWong,

thank you for your work (and the work of your engineers), it was exactly what i was looking for.

Hi Cbarth,

You are welcome. :slight_smile:

Best regards,
Lilian Wong