cancel
Showing results for 
Search instead for 
Did you mean: 

Create of BPMN XML Failed

sudarsanans79
Champ in-the-making
Champ in-the-making
Hi,

I've modelled a small process on Eclipse (Activiti Designer) and it was exported from Eclipse and imported on Explorer.

While trying to deploy it, I got "Create of BPMN XML failed. Error parsing XML"…

Anyone can give me a clue about what is wrong ?

Thanks…

Here is the code:

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlnsSmiley Surprisedmgdc="http://www.omg.org/spec/DD/20100524/DC" xmlnsSmiley Surprisedmgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://activiti.org/bpmn20">
  <process id="wmsinternalreceipts" name="WMS Internal Receipts Process" isExecutable="true">
    <startEvent id="startevent1" name="Start"></startEvent>
    <manualTask id="manualtask1" name="WMS Supervisor Checks the WO"></manualTask>
    <sequenceFlow id="flow6" sourceRef="startevent1" targetRef="manualtask1"></sequenceFlow>
    <scriptTask id="scripttask1" name="Assign Resources based on the palleted and unpalleted items" activiti:autoStoreVariables="false"></scriptTask>
    <userTask id="usertask1" name="Approve or change allocation of tasks"></userTask>
    <sequenceFlow id="flow7" sourceRef="manualtask1" targetRef="scripttask1"></sequenceFlow>
    <sequenceFlow id="flow8" sourceRef="scripttask1" targetRef="usertask1"></sequenceFlow>
    <serviceTask id="servicetask1" name="Assign Task"></serviceTask>
    <sequenceFlow id="flow9" sourceRef="usertask1" targetRef="servicetask1"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
    <userTask id="usertask3" name="Approve for Dispatch"></userTask>
    <manualTask id="manualtask2" name="Move to Quarantine Location"></manualTask>
    <manualTask id="servicetask2" name="Move to Truck loading Bay"></manualTask>
    <sequenceFlow id="flow14" sourceRef="usertask3" targetRef="servicetask2"></sequenceFlow>
    <userTask id="usertask4" name="Intiatiate Quarantine Process and Raise Exception"></userTask>
    <sequenceFlow id="flow15" sourceRef="manualtask2" targetRef="usertask4"></sequenceFlow>
    <endEvent id="endevent1" name="End"></endEvent>
    <sequenceFlow id="flow16" sourceRef="usertask4" targetRef="endevent1"></sequenceFlow>
    <sequenceFlow id="flow17" sourceRef="servicetask2" targetRef="endevent1"></sequenceFlow>
    <sequenceFlow id="flow18" sourceRef="servicetask1" targetRef="exclusivegateway1"></sequenceFlow>
    <sequenceFlow id="flow13" sourceRef="exclusivegateway1" targetRef="manualtask2"></sequenceFlow>
    <sequenceFlow id="flow12" sourceRef="exclusivegateway1" targetRef="usertask3"></sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_financialReport">
    <bpmndi:BPMNPlane bpmnElement="financialReport" id="BPMNPlane_financialReport">
      <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
        <omgdc:Bounds height="30.0" width="30.0" x="20.0" y="103.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="manualtask1" id="BPMNShape_manualtask1">
        <omgdc:Bounds height="79.0" width="121.0" x="130.0" y="82.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="scripttask1" id="BPMNShape_scripttask1">
        <omgdc:Bounds height="95.0" width="105.0" x="390.0" y="86.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask1" id="BPMNShape_usertask1">
        <omgdc:Bounds height="81.0" width="105.0" x="560.0" y="83.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="servicetask1" id="BPMNShape_servicetask1">
        <omgdc:Bounds height="51.0" width="95.0" x="760.0" y="94.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1">
        <omgdc:Bounds height="40.0" width="40.0" x="787.0" y="210.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask3" id="BPMNShape_usertask3">
        <omgdc:Bounds height="71.0" width="105.0" x="460.0" y="340.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="manualtask2" id="BPMNShape_manualtask2">
        <omgdc:Bounds height="71.0" width="105.0" x="318.0" y="200.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="servicetask2" id="BPMNShape_servicetask2">
        <omgdc:Bounds height="71.0" width="123.0" x="737.0" y="410.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask4" id="BPMNShape_usertask4">
        <omgdc:Bounds height="81.0" width="105.0" x="300.0" y="400.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
        <omgdc:Bounds height="28.0" width="28.0" x="530.0" y="510.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow12" id="BPMNEdge_flow12">
        <omgdi:waypoint x="799.8372093023256" y="242.8372093023256"></omgdi:waypoint>
        <omgdi:waypoint x="730.0" y="368.0"></omgdi:waypoint>
        <omgdi:waypoint x="565.0" y="373.6896551724138"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow17" id="BPMNEdge_flow17">
        <omgdi:waypoint x="737.0" y="464.4695481335953"></omgdi:waypoint>
        <omgdi:waypoint x="557.3780615270821" y="519.8735645191515"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow18" id="BPMNEdge_flow18">
        <omgdi:waypoint x="807.3846153846154" y="145.0"></omgdi:waypoint>
        <omgdi:waypoint x="807.0900900900901" y="210.0900900900901"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow15" id="BPMNEdge_flow15">
        <omgdi:waypoint x="367.3829268292683" y="271.0"></omgdi:waypoint>
        <omgdi:waypoint x="356.0560975609756" y="400.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7">
        <omgdi:waypoint x="251.0" y="124.38095238095238"></omgdi:waypoint>
        <omgdi:waypoint x="390.0" y="131.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow16" id="BPMNEdge_flow16">
        <omgdi:waypoint x="405.0" y="463.3916449086162"></omgdi:waypoint>
        <omgdi:waypoint x="531.1668859852862" y="518.4043602076836"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6">
        <omgdi:waypoint x="49.99620185457091" y="118.33753508997427"></omgdi:waypoint>
        <omgdi:waypoint x="130.0" y="120.13826366559485"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow13" id="BPMNEdge_flow13">
        <omgdi:waypoint x="797.0" y="240.0"></omgdi:waypoint>
        <omgdi:waypoint x="717.0" y="320.0"></omgdi:waypoint>
        <omgdi:waypoint x="423.0" y="248.3030303030303"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9">
        <omgdi:waypoint x="665.0" y="122.42307692307692"></omgdi:waypoint>
        <omgdi:waypoint x="760.0" y="120.47435897435898"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow14" id="BPMNEdge_flow14">
        <omgdi:waypoint x="565.0" y="388.34965034965035"></omgdi:waypoint>
        <omgdi:waypoint x="737.0" y="430.4475524475524"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8">
        <omgdi:waypoint x="495.0" y="130.41176470588235"></omgdi:waypoint>
        <omgdi:waypoint x="560.0" y="126.58823529411765"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi could you create jUnit test?
http://forums.activiti.org/content/sticky-how-write-unit-test

Regards
Martin