BPMN-Connection for custom-elements

Hello everyone,
how can I use the bpmn-connection with custom-element?

I want that when connecting the elements, whether custom-element or BPMN-element, the BPMN-connection comes.


Can you elaborate on your use case for custom elements? How are you implementing them? What do you want to achieve that requires custom elements? Are you using an example as a starting point? Without any context we won’t be able to help you.

we can take the example from bpmn-js: custom-elements (with the green triangle and blue circle).
Here orange connections were created for the custom elements. However, I would like to have the typical bpmn connections here (black arrows that are initially vertical and horizontal with arrow ends).


If I delete the CustomConnection for the custom elements in the code, I get pink connections direct to the other Element without an arrow (I suppose that’s the default).

I hope I could clarify my request, otherwise tell me and I will try to create a mockup example.

For those who are looking for the example with the green triangle and blue circle:
I see that recently a new CustomElement example with other custom elements has replaced the old one.

I’m asking you again to elaborate on your use case for custom elements. Why do need them? What do you need them for? I suppose the example you’re using doesn’t suit your use case.

As for the updated examples, yes, we have updated the section about custom elements. We hope there’s going to be less confusion about custom elements in the future. :heart:

I will take a look at the new custom-elements-tutorial. If I have not yet come to a solution myself, I’ll contact you again. Thanks for you help :slight_smile:

Hey guys I’ve got the same question.
I’ve created a couple of custom shapes and I’m intent to create more.
What I want to accomplish is the shape which can contain a couple of custom start events by default which is not editable and what I want to be able to do is to connect those start points to another custom elements with regular bpmn connections.
Is there a way to do so?
Thank you!

Please do not necrobump old topics. Instead link to this thread from new topic.