Create entities only through code

Description of the limitation and why it is relevant to address

As a developer I want to create a workflow where entities can only be created through a workflow defined by the code, therefore it should not be possible to intervene with this workflow by creating an entity through the button that is available by default.

This will result in more user-friendly applications, and more robust.

Submitter proposed design (optional)

A possible solution would be to add an argument on the ChildEntityManager, that would disable the the “Create entity” button. Or to disable the button on the Controller through a class variable.

Current workarounds

None

Context

I’m creating an application where segments of a model are created. These segments are created based on a line, and fixed segment distance. Clicking on a button, all the section entities are created automatically. If the user clicks on the “Create entity” button, it would create an entity that would be useless.

Hi Marcel,

there is a way to achieve this I believe:

  • In the user management of a workspace you can create a user group without the rights to create a specific entity-type
  • Then use the privileged flag when creating an entity via the API

Your proposal would be indeed more developer friendly, we will take it into consideration.

Tried it out, it looks like this:

Let me know if this works for you!