Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-10411

Can't change namespace prefix for bpmn elements

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: L3 - Default L3 - Default
    • None
    • 7.10.0
    • bpmn model api
    • None
    • Windows 10, Java 8

      Hi!

      I created a simple workflow with help of the Model API.

      I got the following result:

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" id="definitions_2d422933-4047-4ef8-b985-774e518ce7b6" targetNamespace="http://camunda.org/examples" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL">
        <process id="process-with-one-task">
          <startEvent id="start">
            <outgoing>start-task1</outgoing>
          </startEvent>
          <serviceTask id="task1" name="User Task">
            <incoming>start-task1</incoming>
            <outgoing>task1-end</outgoing>
          </serviceTask>
          <endEvent id="end">
            <incoming>task1-end</incoming>
          </endEvent>
          <sequenceFlow id="start-task1" sourceRef="start" targetRef="task1"/>
          <sequenceFlow id="task1-end" sourceRef="task1" targetRef="end"/>
        </process>
      </definitions>
      

      I want to set a namespace prefix for bpmn elements.
      I want to get the following result:

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <bpmn:definitions xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:zeebe="http://camunda.org/schema/zeebe/1.0" id="definitions_5376a5e9-5553-4984-9a2d-3e4a3c1f2763" targetNamespace="http://www.omg.org/spec/BPMN/20100524/MODEL" exporter="Zeebe Modeler" exporterVersion="0.6.2">
        <bpmn:process id="process-with-one-task" isExecutable="true">
          <bpmn:startEvent id="start">
            <bpmn:outgoing>start-task1</bpmn:outgoing>
          </bpmn:startEvent>
          <bpmn:serviceTask id="task1" name="Service Task">
            <bpmn:extensionElements>
              <zeebe:taskDefinition type="test" />
            </bpmn:extensionElements>
            <bpmn:incoming>start-task1</bpmn:incoming>
            <bpmn:outgoing>task1-end</bpmn:outgoing>
          </bpmn:serviceTask>
          <bpmn:endEvent id="end">
            <bpmn:incoming>task1-end</bpmn:incoming>
          </bpmn:endEvent>
          <bpmn:sequenceFlow id="start-task1" sourceRef="start" targetRef="task1" />
          <bpmn:sequenceFlow id="task1-end" sourceRef="task1" targetRef="end" />
        </bpmn:process>
      </bpmn:definitions>
      

      Thanks in advance!

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              vmaks Maksim Vlasov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: