ItemDefinition in camunda MetaModel

Dear community,

I am trying to use the metamodel of camunda (camunda-dmn-model-master) for parsing a dmn-file and saving the data extracted out of the xml. I know, that camunda DMN does not support ItemDefinitions (yet). But can it be, that it even does not parse the ItemDefinition-content? (…).getDefinitions().getItemDefinitions() every time has a size of 0…
Well, I would like to be able to work wit ItemDefinitions. Can I get access to them somehow? Can I add them to the metamodel by myself somehow?

Some help would be appreciated!

Thankful Greetings
Georg

Hi @gwolffgang,

this is a known issue. See:

Best regards,
Philipp

Hey @Philipp_Ossler,

thank you for your answer! But I am not sure, if your links really fit to my problem. I am looking for a way to add the missing ItemDefinitions to the metamodel. Your links seem to discuss a problem with inputItems. Or am I completly mistaken?

Greetings
Georg

True :sweat_smile:

You can get the itemDefinition elements by using

model.getModelElementsByType(ItemDefinition.class);

For some reasons, you can’t get the elements by

model.getDefinitions().getItemDefinitions();

Does this help you?

2 Likes

Hey @Philipp_Ossler,

absolutly wonderful! This is exactly, what I was looking for! Thank you so much!!

Greetings
Georg