Hello,
I searched the forum but couldn´t find a solution to my problem.
I expanded the property panel with custom properties for the BPMN SubProcess. The existing example was very useful.
However I also want to change the way my custom properties are saved in the XML, so i had a look into the custom meta-model example.
I want my custom properties to be saved within bpmn2:extensionElements just like it is done in the example, but following the instructions in the example didn´t work and the properties were not saved within bpmn2:extensionElements but as attributes of the sub-process.
I assume something is wrong within my bpmn extension json file:
"types": [
{
"name": "BatchRegion",
"extends": [
"bpmn:SubProcess"
],
"properties": [
{
"name": "isBatch",
"isAttr": true,
"type": "Boolean"
},
{
"name": "batchRegion",
"isMany": false,
"type": "BatchConfiguration"
},
]
},
{
"name": "BatchConfiguration",
"superClass": [ "Element" ],
"properties": [
{
"name": "maxCap",
"isMany": false,
"type": "MaxCapacity"
},
{
"name": "groupChar",
"isMany": false,
"type": "GroupingCharacteristic"
},
{
"name": "actRule",
"isMany": false,
"type": "ThresholdRule"
},
]
},
{
"name": "ThresholdRule",
"properties":[
{
"name": "threshold",
"isAttr": true,
"type": "String"
},
{
"name": "timeout",
"isAttr": true,
"type": "String"
},
]
},
{
"name": "MaxCapacity",
"properties":[
{
"name": "text",
"isBody": true,
"type": "String"
},
]
},
{
"name": "GroupingCharacteristic",
"properties":[
{
"name": "processVar",
"isMany": true,
"type": "ProcessVariable"
},
]
},
{
"name":"ProcessVariable",
"properties":[
{
"name": "text",
"isBody": true,
"type": "String"
},
]
}
]
Any ideas what i did wrong?
Best Regards
Jan