# Avoid parallel flows

**URL:** <https://forum.bpmn.io/t/avoid-parallel-flows/78>\
**Category:** Developers\
**Created:** [March 23, 2015, 8:38pm UTC](https://forum.bpmn.io/t/avoid-parallel-flows/78 "2015-03-23T20:38:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nikku](https://forum.bpmn.io/user_avatar/forum.bpmn.io/nikku/32/5130_2.png) [@nikku](https://forum.bpmn.io/u/nikku)\
**Post date:** [March 24, 2015, 7:27am UTC](https://forum.bpmn.io/t/avoid-parallel-flows/78/2 "2015-03-24T07:27:47Z")

</div>

**TLDR;** Not out of the box, you need to customize [bpmn-js](https://github.com/bpmn-io/bpmn-js).

There are a number of components you need to implement custom modeling palette/rules:

- [ContextPadProvider](https://github.com/bpmn-io/bpmn-js/blob/master/lib/features/context-pad/ContextPadProvider.js) - responsible for showing the context pad / replace menu
- [PaletteProvider](https://github.com/bpmn-io/bpmn-js/blob/master/lib/features/palette/PaletteProvider.js) - adding a custom palette
- [ModelingRules](https://github.com/bpmn-io/bpmn-js/blob/master/lib/features/modeling/rules/ModelingRules.js) - disallowing more than `n` outgoing/incoming edges to user tasks

At some point we will provide functionality to make this kind of customization easier. We are not there yet, though.

---

_[View the full topic](https://forum.bpmn.io/t/avoid-parallel-flows/78)._
