subProcess must define a startEvent element

Hi,

i am not able to define an embedded subprocess, i got the error:
ENGINE-09005 Could not parse BPMN process. Errors:

  • subProcess must define a startEvent element | resource diagram_2.bpmn | line 11 | column 59 [ deploy-error ].

following the simple process definition. thanks in advance.

<?xml version="1.0" encoding="UTF-8"?>

<bpmn:definitions xmlns:bpmn=“http://www.omg.org/spec/BPMN/20100524/MODEL” xmlns:bpmndi=“http://www.omg.org/spec/BPMN/20100524/DI” xmlns:dc=“http://www.omg.org/spec/DD/20100524/DC” xmlns:camunda=“http://camunda.org/schema/1.0/bpmn” xmlns:di=“http://www.omg.org/spec/DD/20100524/DI” id=“Definitions_1ce41fs” targetNamespace=“http://bpmn.io/schema/bpmn” exporter=“Camunda Modeler” exporterVersion=“3.6.0”>
<bpmn:collaboration id=“Collaboration_1g974qt”>
<bpmn:participant id=“Participant_0i2jd49” name=“Main Process” processRef=“Process_0xtrlbi” />
<bpmn:participant id=“Participant_103ug3i” name=“SubProcess1” processRef=“SubProcess1” />
</bpmn:collaboration>
<bpmn:process id=“Process_0xtrlbi” name=“SottoProcesso1” isExecutable=“true”>
<bpmn:startEvent id=“StartEvent_1”>
bpmn:outgoingSequenceFlow_0judaq4</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:subProcess id=“Task_0ttyniv” name=“SubProcess1”>
bpmn:incomingSequenceFlow_0judaq4</bpmn:incoming>
</bpmn:subProcess>
<bpmn:sequenceFlow id=“SequenceFlow_0judaq4” sourceRef=“StartEvent_1” targetRef=“Task_0ttyniv” />
</bpmn:process>
<bpmn:process id=“SubProcess1” name=“SubProcess1” isExecutable=“true”>
<bpmn:userTask id=“Task_0e8yccc” name=“Task” camunda:assignee=“demo”>
bpmn:incomingSequenceFlow_0jkxmn4</bpmn:incoming>
</bpmn:userTask>
<bpmn:startEvent id=“StartEvent_0jnvnre” name=“Start”>
bpmn:outgoingSequenceFlow_0jkxmn4</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id=“SequenceFlow_0jkxmn4” sourceRef=“StartEvent_0jnvnre” targetRef=“Task_0e8yccc” />
</bpmn:process>
<bpmndi:BPMNDiagram id=“BPMNDiagram_1”>
<bpmndi:BPMNPlane id=“BPMNPlane_1” bpmnElement=“Collaboration_1g974qt”>
<bpmndi:BPMNShape id=“Participant_0i2jd49_di” bpmnElement=“Participant_0i2jd49” isHorizontal=“true”>
<dc:Bounds x=“269” y=“117” width=“600” height=“250” />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“_BPMNShape_StartEvent_2” bpmnElement=“StartEvent_1”>
<dc:Bounds x=“319” y=“159” width=“36” height=“36” />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“SubProcess_0cc0jxo_di” bpmnElement=“Task_0ttyniv”>
<dc:Bounds x=“540” y=“137” width=“100” height=“80” />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id=“SequenceFlow_0judaq4_di” bpmnElement=“SequenceFlow_0judaq4”>
<di:waypoint x=“355” y=“177” />
<di:waypoint x=“540” y=“177” />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id=“Participant_103ug3i_di” bpmnElement=“Participant_103ug3i” isHorizontal=“true”>
<dc:Bounds x=“152” y=“430” width=“717” height=“250” />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“StartEvent_0jnvnre_di” bpmnElement=“StartEvent_0jnvnre”>
<dc:Bounds x=“342” y=“522” width=“36” height=“36” />
bpmndi:BPMNLabel
<dc:Bounds x=“349” y=“565” width=“24” height=“14” />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id=“SequenceFlow_0jkxmn4_di” bpmnElement=“SequenceFlow_0jkxmn4”>
<di:waypoint x=“378” y=“540” />
<di:waypoint x=“424” y=“540” />
<di:waypoint x=“424” y=“550” />
<di:waypoint x=“470” y=“550” />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id=“UserTask_0np1azb_di” bpmnElement=“Task_0e8yccc”>
<dc:Bounds x=“470” y=“510” width=“100” height=“80” />
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>

Use a Call Activity if you want to call another process.
Embedded sub processes do not call other processes.