为什么我自定义的元素不是Moodle Element类型 而是Object

process.bpmn20.xml (5.2 KB)

{
“name”: “activiti”,
“uri”: “http://activiti.org/activiti”,
“prefix”: “Activiti”,
“xml”: {
“tagAlias”: “lowerCase”
},
“associations”: [],
“types”: [
{
“name”: “ExtensionAttributeDefinition”,
“properties”: [
{
“name”: “name”,
“isAttr”: true,
“type”: “String”
},
{
“name”: “type”,
“isAttr”: true,
“type”: “String”
},
{
“name”: “isReference”,
“default”: false,
“isAttr”: true,
“type”: “Boolean”
},
{
“name”: “extensionDefinition”,
“type”: “ExtensionDefinition”,
“isAttr”: true,
“isReference”: true
}
]
},
{
“name”: “ExtensionElements”,
“properties”: [
{
“name”: “valueRef”,
“isAttr”: true,
“isReference”: true,
“type”: “Element”
},
{
“name”: “values”,
“type”: “Element”,
“isMany”: true
},
{
“name”: “extensionAttributeDefinition”,
“type”: “ExtensionAttributeDefinition”,
“isAttr”: true,
“isReference”: true
}
]
},
{
“name”: “ExecutionListener”,
“superClass”: [
“Element”
],
“meta”: {
“allowedIn”: [
“bpmn:Task”,
“bpmn:ServiceTask”,
“bpmn:UserTask”,
“bpmn:BusinessRuleTask”,
“bpmn:ScriptTask”,
“bpmn:ReceiveTask”,
“bpmn:ManualTask”,
“bpmn:ExclusiveGateway”,
“bpmn:SequenceFlow”,
“bpmn:ParallelGateway”,
“bpmn:InclusiveGateway”,
“bpmn:EventBasedGateway”,
“bpmn:StartEvent”,
“bpmn:IntermediateCatchEvent”,
“bpmn:IntermediateThrowEvent”,
“bpmn:EndEvent”,
“bpmn:BoundaryEvent”,
“bpmn:CallActivity”,
“bpmn:SubProcess”,
“bpmn:Process”
]
},
“properties”: [
{
“name”: “expression”,
“isAttr”: true,
“type”: “String”
},
{
“name”: “class”,
“isAttr”: true,
“type”: “String”
},
{
“name”: “delegateExpression”,
“isAttr”: true,
“type”: “String”
},
{
“name”: “event”,
“isAttr”: true,
“type”: “String”
},
{
“name”: “script”,
“type”: “Script”
},
{
“name”: “fields”,
“type”: “Field”,
“isMany”: true
}
]
},
{
“name”: “TaskListener”,
“superClass”: [
“Element”
],
“meta”: {
“allowedIn”: [
“bpmn:UserTask”
]
},
“properties”: [
{
“name”: “expression”,
“isAttr”: true,
“type”: “String”
},
{
“name”: “class”,
“isAttr”: true,
“type”: “String”
},
{
“name”: “delegateExpression”,
“isAttr”: true,
“type”: “String”
},
{
“name”: “event”,
“isAttr”: true,
“type”: “String”
},
{
“name”: “script”,
“type”: “Script”
},
{
“name”: “fields”,
“type”: “Field”,
“isMany”: true
},
{
“name”: “id”,
“type”: “String”,
“isAttr”: true
},
{
“name”: “eventDefinitions”,
“type”: “bpmn:TimerEventDefinition”,
“isMany”: true
}
]
},
{
“name”: “FormProperty”,
“superClass”: [
“Element”
],
“meta”: {
“allowedIn”: [
“bpmn:StartEvent”,
“bpmn:UserTask”
]
},
“properties”: [
{
“name”: “id”,
“type”: “String”,
“isAttr”: true
},
{
“name”: “name”,
“type”: “String”,
“isAttr”: true
},
{
“name”: “type”,
“type”: “String”,
“isAttr”: true
},
{
“name”: “required”,
“type”: “String”,
“isAttr”: true
},
{
“name”: “readable”,
“type”: “String”,
“isAttr”: true
},
{
“name”: “writable”,
“type”: “String”,
“isAttr”: true
},
{
“name”: “variable”,
“type”: “String”,
“isAttr”: true
},
{
“name”: “expression”,
“type”: “String”,
“isAttr”: true
},
{
“name”: “datePattern”,
“type”: “String”,
“isAttr”: true
},
{
“name”: “default”,
“type”: “String”,
“isAttr”: true
},
{
“name”: “values”,
“type”: “Value”,
“isMany”: true
}
]
}
]
}

I want to convert activiti: executionListener to the same type as camunda: ExecutionListener. What do I need to do?

Please make sure your code is readable: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code