# Access to definitions from the viewer

**URL:** <https://forum.bpmn.io/t/access-to-definitions-from-the-viewer/10875>\
**Category:** Modeler\
**Created:** [April 8, 2024, 9:38am UTC](https://forum.bpmn.io/t/access-to-definitions-from-the-viewer/10875 "2024-04-08T09:38:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alessia\_Volpi](https://forum.bpmn.io/user_avatar/forum.bpmn.io/alessia_volpi/32/5289_2.png) [@Alessia\_Volpi](https://forum.bpmn.io/u/Alessia_Volpi)\
**Post date:** [April 8, 2024, 9:38am UTC](https://forum.bpmn.io/t/access-to-definitions-from-the-viewer/10875/1 "2024-04-08T09:38:16Z")

</div>

Hi, I’m trying to add some new tags to insert metaInformation inside the model. I create a json to extend an Element and now i had to create a node to inject the new extended element. But i’m not able to access the definitions… i’m using BpmnJS so i have a viewer= new BpmnJs() but neither viewer\_definitions nor viewer.getDefinitions() works. but, if i print the viewer i can see the field \_definitions…  
Please help

---

<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:** [April 15, 2024, 8:10am UTC](https://forum.bpmn.io/t/access-to-definitions-from-the-viewer/10875/2 "2024-04-15T08:10:15Z")

</div>

Can you share the relevant code?

---

<div class="post-metadata">

**Author:** ![Alessia\_Volpi](https://forum.bpmn.io/user_avatar/forum.bpmn.io/alessia_volpi/32/5289_2.png) [@Alessia\_Volpi](https://forum.bpmn.io/u/Alessia_Volpi)\
**Post date:** [April 16, 2024, 5:33pm UTC](https://forum.bpmn.io/t/access-to-definitions-from-the-viewer/10875/3 "2024-04-16T17:33:07Z")

</div>

Don’t worry i fixed it

---

<div class="post-metadata">

**Author:** ![barmac](https://forum.bpmn.io/user_avatar/forum.bpmn.io/barmac/32/974_2.png) [@barmac](https://forum.bpmn.io/u/barmac)\
**Post date:** [July 9, 2025, 10:10am UTC](https://forum.bpmn.io/t/access-to-definitions-from-the-viewer/10875/4 "2025-07-09T10:10:52Z")

</div>

Closed on July 9, 2025, 10:10am UTC

Closing old topics.
