I’m using custom overlays to add information to boundary events. Is there a way to choose the position of the overlay so that it does not interfere with the BPMN elements?
The code I use is based on the example shown at bpmn.io github.
var overlays = bpmnViewer.get('overlays');
// attach an overlay to a node
overlays.add('SCAN_OK', {
position: {
bottom: 0,
right: 0
},
html: '<div>Mixed up the labels?</div>'
});
Maybe it would already be sufficient, if I could determine the value for “bottom” property. Sometimes my boundary events are positioned at the top of a taks, sometimes they are positioned at the bottom.