How to restrict boundary event in user task

HI,

I want to restrict the boundary event in task , can some one guide me how to achieve this?

https://github.com/bpmn-io/bpmn-js-examples/tree/master/custom-modeling-rules :beers:

Thanks for the reply , link was helpful, i found solution