How to change subProcess text position?


i want to change text position like above picture.

renderEmbeddedLabel(parent, shape, expanded ? ‘center-bottom’ : ‘center-middle’, style);

Is there any way to set it up using this code?

You’ve already found the right place to implement that.

Simply change the line to

renderEmbeddedLabel(parentGfx, element, expanded ? 'center-bottom' : 'center-middle');

Be aware that markers are rendered in the same place.


I’ve already tried it, but it’s not working.

Even if i set it to ‘center-bottom’, the text is above it.

Have you debugged it in order to find out why it’s not working?