We are using bpmn.io to allow our users to create/edit their workflow via a bpmn. We would like to hide an existing DataObject because we are using them to store some infos which our users would not need in order to use our app and edit their workflow and we would like to avoid them any confusion about what it is and also prevent them from editing it.
I have found some elements suggesting that it is not possible de get a DataObject through the elementRegistry.getAll(). I have not managed to get the DataObjectReference either.
The best I’ve managed is to get the DOM elements corresponding to the DataObject and its label and apply a “display: none” to them. But, I think it’s kind of a dirty trick and I would like to know if there is a cleaner way to achieve that with bpmn.io.