Pools and Lanes in fluent api

I need to create participant pools and lanes in BPMN Model with Fluent API Builder.
Please help me on this.

Thanks in advance

1 Like

Hi @Aneesh and welcome to the forum,

I think, the fluent API does not support Pools and Lanes. However, you can use the general model API to create them:
https://docs.camunda.org/javadoc/camunda-bpm-platform/7.18/org/camunda/bpm/model/bpmn/instance/package-summary.html

Using the model API, you can add a Participant element to the model. The participant is a pool:
https://docs.camunda.org/javadoc/camunda-bpm-platform/7.18/org/camunda/bpm/model/bpmn/instance/Participant.html
Each participant has a process that you can set/update.

2 Likes

Hi Stephan,
I would also like to pools/lanes as part of the fluent API. This would be a great thing, as I create highly complex (for me except) process flows dynamically based on a service model description notation as part of my PhD project.
At the moment I am able to create complex layouts (with some minor layouting issues). But what I am missing are roles and participants which are part of my modeling language.

The question would be: Can we mix FluentAPI and ModelAPI and later layout everything correctly?

Thanks and Best,
Meikel

Hi Meikel,

Yes, as far as I know, it is possible to mix the fluent API and the model API. If you want to do any fancy layouting, you would need to implement it yourself.

Regards,
Stephan