Skip to main content
Answer

Create a formula to count tasks, gateways in BPMN 2.0 notation

  • January 14, 2025
  • 2 replies
  • 63 views

Forum|alt.badge.img

Hello, Guys!

I would like to create a formula to count tasks, gateways in BPMN 2.0 notation. How could I solve this?

Thanks.

 

Best answer by Cameron G

Hi Estras,


For BPMN Tasks simply use:

{{=COUNTIF(descendants(PAGE), x => shapetype(x) = 'BPMNActivity')}}

For BPMN Gateways:

{{=COUNTIF(descendants(PAGE), x => shapetype(x) = 'BPMNGateway')}}

 

In the future, what I find helpful is to select the shape you’re wondering about and in the Contextual Panel, select Data, add a Property and type: =SHAPETYPE and its shapetype is displayed for you.

 

 

Enjoy!

Cameron

Comments

Cameron G
Lucid Legend Level 4
Forum|alt.badge.img+10
  • Lucid Legend Level 4
  • Answer
  • January 14, 2025

Hi Estras,


For BPMN Tasks simply use:

{{=COUNTIF(descendants(PAGE), x => shapetype(x) = 'BPMNActivity')}}

For BPMN Gateways:

{{=COUNTIF(descendants(PAGE), x => shapetype(x) = 'BPMNGateway')}}

 

In the future, what I find helpful is to select the shape you’re wondering about and in the Contextual Panel, select Data, add a Property and type: =SHAPETYPE and its shapetype is displayed for you.

 

 

Enjoy!

Cameron


Cameron G
Lucid Legend Level 4
Forum|alt.badge.img+10
  • Lucid Legend Level 4
  • January 17, 2025

@Esdras Eliwan : I failed to include you in an @-mention so you likely weren’t notified of a response. My apologies.

Please let me know if the above answered your question.

Have a great day!

Cameron