Book a Demo

Author Topic: need help for report template setup  (Read 6296 times)

ea_user

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
need help for report template setup
« on: February 08, 2018, 02:23:41 pm »
Hi,

In our EA repository, we have documented process flows using BPMN 2.0 notation. As a standard practice, process sub-flows are kept in a separate external package and are linked in across multiple process diagrams. I am trying to create a report to show the main process diagram and it's activities. If a main flow contains sub-flows, then the same report should show the sub-flow diagram and it's activities. Basically trying to generate a report which looks like this:

Main Process Name
Diagram
Activity1
Activity 2 (Sub-Flow)
       Sub-Flow Diagram
       Sub-Flow Activity 1
       Sub-Flow Activity 2
 
Following the guide on creating report templates, I have created the following templates/fragments:

1) Main Process Report (Template)
2) Sub-Process Report (Fragment)

Structure of Main Process Report template is as follows:

package>
diagram>
{Diagram.DiagramImg}
element>
{Element.Name}
{Template - SubProcess_Report}
<element
<diagram
element>
{Element.Name}
diagram>
<diagram>
childelements>
<childelements
<element
childpackages>
<childpackages>
<package


Structure of Sub-Process Report fragment is as follows:

package>
diagram>
{Diagram.DiagramImg}
element>
{Element.Name}
<element
<diagram
element>
diagram>
<diagram>
childelements>
<childelements
<element
childpackages>
<childpackages>
<package

For both the above templates, exclude filter has been set to display only objects of type "Activity". Also on the process diagrams (main and sub-flow), I have set the option to "add each contained elements in Documentation"

When I try to generate a report from package containing the main processes, the report does not display the any of the sub-flow activities. This is what I get in the generated report:

Main Process Name
Diagram
Activity1
Activity 2 (Sub-Flow)
       Sub-Flow Diagram

So could any one provide some pointers on what is missing in the template/fragments that I have configured?
Thanks in advance.

Note: We are using version 13.5


DinaHaines

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: need help for report template setup
« Reply #1 on: February 08, 2018, 03:17:12 pm »
I just gone through your post and it is understandable. But I cannot find any solution for it because I am a beginner to this system. I hope you will get the required data from those who have known this for years.

Arshad

  • EA User
  • **
  • Posts: 291
  • Karma: +21/-1
    • View Profile
Re: need help for report template setup
« Reply #2 on: February 08, 2018, 03:30:37 pm »

So could any one provide some pointers on what is missing in the template/fragments that I have configured?
Thanks in advance.

Note: We are using version 13.5



You sub-process template will bind the child elements only if they are available under the main process elements.
You have mentioned as sub process are kept in some external packages.So in that case it wont come under the main process element.


HTH
Arshad


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: need help for report template setup
« Reply #3 on: February 08, 2018, 04:00:55 pm »
The way I would do it is use virtual documents.
With a search based on the GUID you can single out the subprocess.

I've written up my process here: https://bellekens.com/2015/11/12/tutorial-generate-complex-documents-from-enterprise-architect-with-a-two-step-semi-automated-approach/

Geert

Nabil

  • EA User
  • **
  • Posts: 149
  • Karma: +5/-2
    • View Profile
    • View My LinkedIn Profile Here
Re: need help for report template setup
« Reply #4 on: February 08, 2018, 04:18:40 pm »
Hello,

As I noticed the place you have positioned your fragment itself wont work in this case. Even without the fragment you will get the same output.
Second key point is as you mentioned your sub process are kept in a separate package the only way to get the sub process is via diagrams (if there is no chance for connector usually we wont have)

here you can use Document Script(option in fragment) to print what you are expecting

Refer the link Geert mentioned also you can refer my sample model from this link http://bit.ly/2DiBohE to that will be useful in this scenario
« Last Edit: February 08, 2018, 04:25:52 pm by Nabil »
Nabil

ea_user

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: need help for report template setup
« Reply #5 on: February 09, 2018, 08:34:22 am »
The way I would do it is use virtual documents.
With a search based on the GUID you can single out the subprocess.

I've written up my process here: https://bellekens.com/2015/11/12/tutorial-generate-complex-documents-from-enterprise-architect-with-a-two-step-semi-automated-approach/

Geert

Thanks Geert for the pointer to use virtual documents, I will go through your tutorial and see how far I get.

ea_user

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: need help for report template setup
« Reply #6 on: February 09, 2018, 08:37:40 am »
Hello,

As I noticed the place you have positioned your fragment itself wont work in this case. Even without the fragment you will get the same output.
Second key point is as you mentioned your sub process are kept in a separate package the only way to get the sub process is via diagrams (if there is no chance for connector usually we wont have)

here you can use Document Script(option in fragment) to print what you are expecting

Refer the link Geert mentioned also you can refer my sample model from this link http://bit.ly/2DiBohE to that will be useful in this scenario

Scripting is an area that I have not explored yet. Looks like I have a bit of learning to do. Thanks for your inputs. F.Y.I without the fragment, I was not getting the sub-flow diagram in my report.