Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Tarzan on June 30, 2025, 06:51:04 pm

Title: No values using reporttemplate
Post by: Tarzan on June 30, 2025, 06:51:04 pm
Hello Everyone,

I have an issue. I made a reporttemplate for a procesmodel (see below). It works for a model in BPMN. But the problem is that someone else wanted to use this reporttemplate but the value of the element fields are not seen in his report. So, you can see the values of the diagram fields but not of the element fields. The model without values is made with a personilized MDG that extends BPMN. Doe anyone has an idea on how to fix this?

Reporttemplate:
package >


diagram >
{Diagram.Name} diagram

Author: {Diagram.Author}   version: {Diagram.Version}   Last update: {Diagram.DateModifiedShort}

Description:

{Diagram.Notes}


{Diagram.DiagramImg}
{Diagram.Name}

element >
Description per element:
Proces step           Type                    Role                          Description
{Element.Name}   {Element.Type}   {Element.Owner}   {Element.Notes}
< element


< diagram
child packages >
< child packages
element >
embedded elements >
< embedded elements
diagram >
< diagram
child elements >
< child elements
< element
< package






Title: Re: No values using reporttemplate
Post by: Geert Bellekens on June 30, 2025, 07:55:06 pm
Have you checked the filters in the template properties? If it contains filters that use BPMN stereotypes, then your custom stereotypes might not show up.

Geert
Title: Re: No values using reporttemplate
Post by: Tarzan on June 30, 2025, 09:31:17 pm
Thank you for your reaction!

It looks like that is not the problem. There are no filters active on the template
Title: Re: No values using reporttemplate
Post by: Tarzan on July 03, 2025, 11:48:13 pm
Are there any other suggestions?
Title: Re: No values using reporttemplate
Post by: Sunshine on July 04, 2025, 07:32:09 am
My first thought was possibly filters however, as you've eliminated that then other sources of that problem could be.
a) Not selecting the right package for the template to generate the information from.
b) Some kind of corruption in the model. Perform a integrity check to correct.

Title: Re: No values using reporttemplate
Post by: philchudley on July 04, 2025, 08:34:23 pm
Is this option checked in the Diagram section of the diagram properties?

Add each contained element in Documentation

Select this checkbox to include documentation on each element in this diagram, in any document report generated on the parent Package or element.


Just a thought

Phil
Title: Re: No values using reporttemplate
Post by: Tarzan on July 08, 2025, 05:38:34 pm
The solutions didn't work. I added it between child elements >Element.Name, Element.Type, etc. < Child elements

After that I could see it, but only if I placed the pools and other BPMN elements at the same hierarchy level as the BPMN_BusinessProcess stereotype. But this is not exactly what I want. I want them one hierarchy level under the BPMN_BusinessProcess stereotype