Creating a sub-process and setting properties

Hi oguz,

firstly, thank you for your response. I haven’t tried updateProperties API before, but I have followed steps from this thread, and now I’m seeing ERROR Error: “unknown type camunda:connector in console.

Snippet:

let extensionElements = moddle.create('bpmn:ExtensionElements');
let connector = moddle.create('camunda:connector');
extensionElements.values.push(connector);
....
modeling.updateProperties(testServiceTask1, {
        extensionElements: extensionElements
      })