Restrict Connection for Start event


#1

Hi all,
I want to restrict more outgoing Connection from StartEvent . How to check that how many connections are made for an event in bpmnrules.js . Is there any default method to find that ?


#2

You can add a custom rule and check for the number of outgoing connections:

if (shape.outgoing.length > 1) {
  return false;
}