Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Tarzan on May 27, 2025, 07:29:58 pm

Title: Connecting BPMN lanes to Activities in Reports
Post by: Tarzan 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!

Title: Re: Connecting BPMN lanes to Activities in Reports
Post by: Geert Bellekens 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
Title: Re: Connecting BPMN lanes to Activities in Reports
Post by: Tarzan on May 27, 2025, 09:41:50 pm
It worked, thanks!!