How to set waypoints when creating sequence flows?

I use modeling.createConnection to create Sequence Flows. However, the Lines tend to overlap with each other. Is there a simple way to set specific waypoints when creating a SequenceFlow?

Thanks!

It’s possible to pass the waypoints together with the connection parameter passed to modeling.createConnection, e.g.

{
  type: "bpmn:SequenceFlow",
  waypoints: [ { x: 0, y: 0 }, { x: 100, y: 100 } ]
}

If you create your connections programmatically, this could be enough. However, if you are interested in a robust solution for modeling, please come back with your project in a CodeSandbox.

Thank you very much, that should be fine to start with!

1 Like