Restrict ingoing and outgoing connection counts

Hi All,

I want to restrict ingoing and outgoing connection counts by type (like ‘bpmn:StartEvent’). For example: A task can have only one ingoing and outgoing connection.

What is the best way to define these rules? Is there a way to validate these rules after complete drawing?

Thanks in advice.

You can accomplish that using custom rules.

Hi Nikku,

Thank you for your quick response. I set max incoming and outgoing values to businessobjects then use these values to check rules. I define these rules on ‘connection.create’ and ‘shape.append’. I hope this is not a bad bay.

And what about checking validation after complete drawing BPMN? I guess I need to write a custom validator. How can I achive this goal?