Defining waypoints for sequence flow with fluent BPMN API

Hi all,
I’m using the fluent API to create a process with a task and an exclusive gateway using this code:

Bpmn.createExecutableProcess()
.startEvent()
.userTask("myTask")
.exclusiveGateway()
.gatewayDirection(GatewayDirection.Diverging)
.condition("", "${x != 3}")
.endEvent()
.moveToLastGateway()
.condition("", "${x == 3}")
.connectTo("myTask")
.done();

This results in the following diagram:
image

As you can see the sequence flow connecting back to myTask is hidden behind other sequence flows and elements. Is there a way to specify waypoints for this sequence flow using the fluent API so that it’s cleary visible?

Hi @ppet,

I assume that you are using the auto layout functionality of the BPMN Model API, right?
At the moment it is not possible to define these waypoints for notation elements.

You could raise a feature request in the ticket system.

Cheers,
Tassilo