Author Topic: Connecting BPMN lanes to Activities in Reports  (Read 442 times)

Tarzan

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Connecting BPMN lanes to Activities in Reports
« on: May 27, 2025, 07:29:58 pm »
Hi all,

I'm working on a custom document generation template in Sparx Enterprise Architect to export BPMN process diagrams. The current template outputs a list of activities with their name, type, and description (from the Notes field).

Is it possible to also include the Lane (role) in which each BPMN activity is placed, shown as an extra column in the report.

Here is a simplified version of the template we are currently using:

package >

diagram >
{Diagram.Name} diagram

Author: {Diagram.Author}    Version: {Diagram.Version}    Last modified: {Diagram.DateModifiedShort}

Description of the process diagram:

{Diagram.Notes}

{Diagram.Name}

element >
Description of process diagram elements:
Process Step    Type    Lane    Description
{Element.Name}  {Element.Type}     {Element.Notes}
< element

< diagram
< package

I am looking for a way to populate the "Lane" column with the name of the lane (or pool) in which the activity resides.

From what I understand, there is no direct property on the Activity element that links it to its lane, as the lane is just a visual container.

Does anyone know how to extract this relationship.

Any guidance or example templates would be greatly appreciated!


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Connecting BPMN lanes to Activities in Reports
« Reply #1 on: May 27, 2025, 07:41:12 pm »
The lane is the owner of the Activity (or it should be if you modelled your BPMN correctly) so {Element.Owner} should work.

If however your lanes don't have a name (and get their name from the partitionElementRef tagged value) you'll have to resort to an SQL fragment.

Geert

Tarzan

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Connecting BPMN lanes to Activities in Reports
« Reply #2 on: May 27, 2025, 09:41:50 pm »
It worked, thanks!!