# How to restrict available elements

**URL:** <https://forum.bpmn.io/t/how-to-restrict-available-elements/14743>\
**Category:** Modeler\
**Created:** [May 13, 2025, 9:14am UTC](https://forum.bpmn.io/t/how-to-restrict-available-elements/14743 "2025-05-13T09:14:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nbouliol](https://forum.bpmn.io/user_avatar/forum.bpmn.io/nbouliol/32/6694_2.png) [@nbouliol](https://forum.bpmn.io/u/nbouliol)\
**Post date:** [May 13, 2025, 9:14am UTC](https://forum.bpmn.io/t/how-to-restrict-available-elements/14743/1 "2025-05-13T09:14:14Z")

</div>

Hello

Thank you for this wonderful library!

I would like to restrict the available blocks a user can use to the followings:

- Start & End Events
- Labels
- Descriptions
- Flows (i.e. the arrows!)
- User Tasks
- Service Tasks
- Subprocesses
- Exclusive Gateways
- Inclusive Gateways
- Call activities

I can’t find any documentation or example explaining how to do it.

I found this [post](https://forum.bpmn.io/t/ability-to-restrict-available-form-elements-in-form-js/11140) on the forum that might be interesting for my use case but sadly it has no answers.

Nico

---

<div class="post-metadata">

**Author:** ![philippfromme](https://forum.bpmn.io/user_avatar/forum.bpmn.io/philippfromme/32/2803_2.png) [@philippfromme](https://forum.bpmn.io/u/philippfromme)\
**Post date:** [May 13, 2025, 10:42am UTC](https://forum.bpmn.io/t/how-to-restrict-available-elements/14743/2 "2025-05-13T10:42:52Z")

</div>

You’d have to limit the available elements in a couple of places, the palette, the context menu and replace menu. There’s an example for adding new elements but removing elements works just the same: [GitHub - bpmn-io/bpmn-js-example-custom-controls: An example how to add custom editor controls to bpmn-js](https://github.com/bpmn-io/bpmn-js-example-custom-controls)

For disallowing message flows you’d have to adjust the rules: [bpmn-js-examples/custom-modeling-rules at main · bpmn-io/bpmn-js-examples · GitHub](https://github.com/bpmn-io/bpmn-js-examples/tree/main/custom-modeling-rules)

---

<div class="post-metadata">

**Author:** ![nbouliol](https://forum.bpmn.io/user_avatar/forum.bpmn.io/nbouliol/32/6694_2.png) [@nbouliol](https://forum.bpmn.io/u/nbouliol)\
**Post date:** [May 13, 2025, 12:21pm UTC](https://forum.bpmn.io/t/how-to-restrict-available-elements/14743/3 "2025-05-13T12:21:44Z")

</div>

Thanks !

I will look into it

---

<div class="post-metadata">

**Author:** ![system](https://forum.bpmn.io/uploads/default/original/2X/b/b534893973385c2d302b38572464112e4adae002.png) [@system](https://forum.bpmn.io/u/system)\
**Post date:** [May 27, 2025, 8:26am UTC](https://forum.bpmn.io/t/how-to-restrict-available-elements/14743/4 "2025-05-27T08:26:54Z")

</div>

Closed on May 27, 2025, 8:26am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
