How do we override type Property in bpmn.json

Hi,

The type Property available in bpmn.json is

{
      "name": "Property",
      "superClass": [
        "ItemAwareElement"
      ],
      "properties": [
        {
          "name": "name",
          "isAttr": true,
          "type": "String"
        }
      ]
 }

I want to make that type to take one more property value as below

  {
          "name": "Property",
          "superClass": [
            "ItemAwareElement"
          ],
          "properties": [
            {
              "name": "name",
              "isAttr": true,
              "type": "String"
            },
	    {
              "name": "value",
              "isAttr": true,
              "type": "String"
            }
          ]
     }

How to override the existing type Property to take a new property value as above?

Please also describe how to override a property

I do not see a use-case for overriding a property that way. It will result in BPMN 2.0 XML to not be standards compliant anymore. Could you tell us your reasoning behind this extension? Maybe we can hint you at a better solution.

my issue is that …

I have an <errorEventDefinition errorRef="thisisenerror" /> which for some reason when I import the bpmn file.
It doesn’t not register is as an errorRef element with type:‘bpmn:Error’, id:thisisenerror, name:thisisenerror

All I needed it this errorRef to be a string type so I can just manipulate just that without creating an ‘bpmn:Error’ element. Therefore if i can just override the default for ‘errorRef’ to be string that would be great

actually for some Reason when i do updateProperty on the eventDefinition, It doesn’t create the <Error id='thisisenerror' name='thisisenerror'/> I think that’s my issue …