Hello, I would like to have a sequence flow automatically drawn from the BorderEvent to the subprocess as soon as I attach a BorderEvent to a subprocess. Do you have any tips on how I can achieve this?
You’d hook into the command and connect the two afterwards:
class ConnectBoundaryEventBehavior extends CommandInterceptor {
constructor(eventBus, modeling) {
super(eventBus);
this.postExecuted("shape.create", ({ context }) => {
const { shape } = context;
if (is(shape, "bpmn:BoundaryEvent")) {
modeling.connect(shape, shape.host);
}
});
}
}
ConnectBoundaryEventBehavior.$inject = ["eventBus", "modeling"];