Add/edit camunda properties

Hey everyone,

I’m searching for a possibility to add a camunda property (properties panel -> extension). In the XML, it should look like this:

<bpmn2:task id="Task_18zg8m5" name="asdads">
  <bpmn2:extensionElements>
    <camunda:properties>
      <camunda:property name="test" value="testvalue" />
    </camunda:properties>
  </bpmn2:extensionElements>
</bpmn2:task>

I try to set the test-property with the value textvalue. I have the responding element, but failed to add the property. I tried modeling.updateProperties(element, {test:'testvalue'}), but ran into a namespace error. Is there a way to do that?

Thanks in advance.

1 Like