How to restrict available elements

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 on the forum that might be interesting for my use case but sadly it has no answers.

Nico

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

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

1 Like

Thanks !

I will look into it

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