1 Reply Latest reply on Jul 15, 2016 9:08 AM by rsunkara48

    Creating a process flow - Unable to parse xml, Null Pointer Exception

    rsunkara48

      Hi

       

      I am using BPM Suite 6.3 and EAP 6.4.6 (Installed EAP 6.4 and applied patch on top of it)

       

      Its successfully installed and I could create a process flow. I have created only a start element, a manual task (added description and assigned it type of manual) and the end element. The moment I add any task, I see unable to parse xml in the bottom messages window and If I save it and reopen it, it never opens in the graphical editor, I see a pop up message - Unable to process, opening in xml editor. Below is my xml. I have seen others facing this issue in april 2016 and the resolution as below. If this really solves the issue where exactly should this be placed?

       

      https://access.redhat.com/solutions/2274141

       

      o import a process back it is necessary to manually add the process variable into the underlying XML definition.
        - Add ItemDefinition
      <bpmn2:itemDefinition id="_sampleProcessVar" structureRef="Boolean"/>
        - Add the actual variable (property) <bpmn2:property id="sampleProcessVar" itemSubjectRef="_sampleProcessVar"/>

      Once the process is imported, it is possible to delete the process variable again and also the task input/output assignments where it is used.

       

       

       

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

      <bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.omg.org/bpmn20" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" xmlns:color="http://www.omg.org/spec/BPMN/non-normative/color" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:drools="http://www.jboss.org/drools" id="_9kOIsDyaEeajG6zsLvZRFg" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd" exporter="jBPM Designer" exporterVersion="6.2.0" expressionLanguage="http://www.mvel.org/2.0" targetNamespace="http://www.omg.org/bpmn20" typeLanguage="http://www.java.com/javaTypes">
        <bpmn2:process id="project1.enrollment" drools:packageName="org.jbpm" drools:version="1.0" name="" isExecutable="true">
          <bpmn2:startEvent id="_40FEFE35-57DF-41EA-BACD-
      CD9442A69C1F" drools:selectable="true" color:background-color="#9acd32" color:border-color="#000000" color:color="#000000" name="">

            <bpmn2:extensionElements>

              <drools:metaData name="elementname">

                <drools:metaValue><![CDATA[]]></drools:metaValue>

              </drools:metaData>

            </bpmn2:extensionElements>

            <bpmn2:outgoing>_4E3C0973-9959-4514-AFD8-A5AF97E15DDD</bpmn2:outgoing>

          </bpmn2:startEvent>

          <bpmn2:manualTask id="_B38C717D-C15E-457E-8BC1-5AA314EA6144" drools:selectable="true" color:background-color="#fafad2" color:border-color="#000000" color:color="#000000" name="Provider contacts provider services">

            <bpmn2:extensionElements>

              <drools:metaData name="elementname">

                <drools:metaValue><![CDATA[Provider contacts provider services]]></drools:metaValue>

              </drools:metaData>

            </bpmn2:extensionElements>

            <bpmn2:incoming>_4E3C0973-9959-4514-AFD8-A5AF97E15DDD</bpmn2:incoming>

            <bpmn2:outgoing>_5E61128F-A0D7-40A4-B2A2-39C514598120</bpmn2:outgoing>

          </bpmn2:manualTask>

          <bpmn2:sequenceFlow id="_4E3C0973-9959-4514-AFD8-A5AF97E15DDD" drools:selectable="true" color:background-color="#000000" color:border-color="#000000" color:color="#000000" sourceRef="_40FEFE35-57DF-41EA-BACD-CD9442A69C1F" targetRef="_B38C717D-C15E-457E-8BC1-5AA314EA6144"/>

          <bpmn2:endEvent id="_D63BC2E3-FCC2-418F-972C-BF2F4899D4B6" drools:selectable="true" color:background-color="#ff6347" color:border-color="#000000" color:color="#000000" name="">

            <bpmn2:extensionElements>

              <drools:metaData name="elementname">

                <drools:metaValue><![CDATA[]]></drools:metaValue>

              </drools:metaData>

            </bpmn2:extensionElements>

            <bpmn2:incoming>_5E61128F-A0D7-40A4-B2A2-39C514598120</bpmn2:incoming>

          </bpmn2:endEvent>

          <bpmn2:sequenceFlow id="_5E61128F-A0D7-40A4-B2A2-39C514598120" drools:selectable="true" color:background-color="#000000" color:border-color="#000000" color:color="#000000" sourceRef="_B38C717D-C15E-457E-8BC1-5AA314EA6144" targetRef="_D63BC2E3-FCC2-418F-972C-BF2F4899D4B6"/>

        </bpmn2:process>

        <bpmndi:BPMNDiagram id="_9kOIsTyaEeajG6zsLvZRFg">

          <bpmndi:BPMNPlane id="_9kOIsjyaEeajG6zsLvZRFg" bpmnElement="project1.enrollment">

            <bpmndi:BPMNShape id="_9kOIszyaEeajG6zsLvZRFg" bpmnElement="_40FEFE35-57DF-41EA-BACD-CD9442A69C1F">

              <dc:Bounds height="30.0" width="30.0" x="120.0" y="165.0"/>

            </bpmndi:BPMNShape>

            <bpmndi:BPMNShape id="_9kOItDyaEeajG6zsLvZRFg" bpmnElement="_B38C717D-C15E-457E-8BC1-5AA314EA6144">

              <dc:Bounds height="80.0" width="100.0" x="195.0" y="140.0"/>

            </bpmndi:BPMNShape>

            <bpmndi:BPMNEdge id="_9kOItTyaEeajG6zsLvZRFg" bpmnElement="_4E3C0973-9959-4514-AFD8-A5AF97E15DDD">

              <di:waypoint xsi:type="dc:Point" x="135.0" y="180.0"/>

              <di:waypoint xsi:type="dc:Point" x="245.0" y="180.0"/>

            </bpmndi:BPMNEdge>

            <bpmndi:BPMNShape id="_9kOItjyaEeajG6zsLvZRFg" bpmnElement="_D63BC2E3-FCC2-418F-972C-BF2F4899D4B6">

              <dc:Bounds height="28.0" width="28.0" x="340.0" y="166.0"/>

            </bpmndi:BPMNShape>

            <bpmndi:BPMNEdge id="_9kOItzyaEeajG6zsLvZRFg" bpmnElement="_5E61128F-A0D7-40A4-B2A2-39C514598120">

              <di:waypoint xsi:type="dc:Point" x="245.0" y="180.0"/>

              <di:waypoint xsi:type="dc:Point" x="354.0" y="180.0"/>

            </bpmndi:BPMNEdge>

          </bpmndi:BPMNPlane>

        </bpmndi:BPMNDiagram>

        <bpmn2:relationship id="_9kOIuDyaEeajG6zsLvZRFg" type="BPSimData">

          <bpmn2:extensionElements>

            <bpsim:BPSimData>

              <bpsim:Scenario xsi:type="bpsim:Scenario" id="default" name="Simulationscenario">

                <bpsim:ScenarioParameters xsi:type="bpsim:ScenarioParameters" baseTimeUnit="s"/>

                <bpsim:ElementParameters xsi:type="bpsim:ElementParameters" elementRef="_4E3C0973-9959-4514-AFD8-A5AF97E15DDD" id="_9kOIuTyaEeajG6zsLvZRFg">

                  <bpsim:ControlParameters xsi:type="bpsim:ControlParameters">

                    <bpsim:Probability xsi:type="bpsim:Parameter">

                      <bpsim:FloatingParameter value="100.0"/>

                    </bpsim:Probability>

                  </bpsim:ControlParameters>

                </bpsim:ElementParameters>

                <bpsim:ElementParameters xsi:type="bpsim:ElementParameters" elementRef="_D63BC2E3-FCC2-418F-972C-BF2F4899D4B6" id="_9kOIujyaEeajG6zsLvZRFg">

                  <bpsim:TimeParameters xsi:type="bpsim:TimeParameters">

                    <bpsim:ProcessingTime xsi:type="bpsim:Parameter"/>

                  </bpsim:TimeParameters>

                </bpsim:ElementParameters>

                <bpsim:ElementParameters xsi:type="bpsim:ElementParameters" elementRef="_40FEFE35-57DF-41EA-BACD-CD9442A69C1F" id="_9kOIuzyaEeajG6zsLvZRFg">

                  <bpsim:TimeParameters xsi:type="bpsim:TimeParameters">

                    <bpsim:ProcessingTime xsi:type="bpsim:Parameter"/>

                  </bpsim:TimeParameters>

                </bpsim:ElementParameters>

                <bpsim:ElementParameters xsi:type="bpsim:ElementParameters" elementRef="_B38C717D-C15E-457E-8BC1-5AA314EA6144" id="_9kOIvDyaEeajG6zsLvZRFg">

                  <bpsim:TimeParameters xsi:type="bpsim:TimeParameters">

                    <bpsim:ProcessingTime xsi:type="bpsim:Parameter"/>

                  </bpsim:TimeParameters>

                  <bpsim:CostParameters xsi:type="bpsim:CostParameters">

                    <bpsim:UnitCost xsi:type="bpsim:Parameter">

                      <bpsim:FloatingParameter value="0.0"/>

                    </bpsim:UnitCost>

                  </bpsim:CostParameters>

                </bpsim:ElementParameters>

                <bpsim:ElementParameters xsi:type="bpsim:ElementParameters" elementRef="_5E61128F-A0D7-40A4-B2A2-39C514598120" id="_9kOIvTyaEeajG6zsLvZRFg">

                  <bpsim:ControlParameters xsi:type="bpsim:ControlParameters">

                    <bpsim:Probability xsi:type="bpsim:Parameter">

                      <bpsim:FloatingParameter value="100.0"/>

                    </bpsim:Probability>

                  </bpsim:ControlParameters>

                </bpsim:ElementParameters>

              </bpsim:Scenario>

            </bpsim:BPSimData>

          </bpmn2:extensionElements>

          <bpmn2:source>_9kOIsDyaEeajG6zsLvZRFg</bpmn2:source>

          <bpmn2:target>_9kOIsDyaEeajG6zsLvZRFg</bpmn2:target>

        </bpmn2:relationship>

      </bpmn2:definitions>