How do i add an xml in bpmn with js

types: [{
name: “OaNode”,
extends: [“bpmn:FlowNode”],
properties: [{
name: “memo”,
isAttr: true,
type: “String”
}]
}, {
name: “Users”,
superClass: [“Element”],
properties: [{
name: “isAllUser”,
isAttr: true,
type: “Boolean”
}]

You need to give a bit more information regarding where you are at and what you are trying to achieve.

Have you already added this to bpmn.json or camunda.json to define a namespace for the attributes? If so, are you trying to set values to these new attributes?

Take a look at this example and follow its tutorial, its fairly easy and it will give you more insight into adding custom xml.

cheers