[jboss-user] [jBPM] - Re: Unable to save process from process-designer after moving it from Eclipse (NPE)
Michael G
do-not-reply at jboss.com
Tue Nov 6 09:33:26 EST 2012
Michael G [https://community.jboss.org/people/mpgong] created the discussion
"Re: Unable to save process from process-designer after moving it from Eclipse (NPE)"
To view the discussion, visit: https://community.jboss.org/message/775095#775095
--------------------------------------------------------------
>From a clean start, i created a process and when i build it gives me this error. unable to parse xml : Exception class org.xml.sax.SAXParseException : <itemDefinition> is after an invalid element: org.drools.xml.Handle
Here is the generated source - not sure if this is the cause but the placement of the error element i think is out of place. I also included the process image.
<?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: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="_D18mACgeEeKa2dBsissNHQ" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" targetNamespace="http://www.omg.org/bpmn20">
<bpmn2:error id="_D18mESgeEeKa2dBsissNHQ"/>
<bpmn2:itemDefinition id="__1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_MyThirdParamInputItem" structureRef="java.lang.Object"/>
<bpmn2:itemDefinition id="__1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_MySecondParamInputItem" structureRef="String"/>
<bpmn2:itemDefinition id="__1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_MyFirstParamInputItem" structureRef="String"/>
<bpmn2:itemDefinition id="__1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_ResultOutputItem" structureRef="java.lang.Object"/>
<bpmn2:process id="org.test.TestProcess" drools:packageName="org.test" name="TestProcess" isExecutable="true">
<bpmn2:startEvent id="_C0E8024B-D23C-4371-84A6-C3F2613E4E0E" drools:bgcolor="#9acd32" drools:selectable="true" name="">
<bpmn2:outgoing>_F7DB9025-8F90-4139-9366-172758477A77</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:scriptTask id="_358A3AE2-8FF7-4D7C-AAFA-C949EF507E9E" drools:selectable="true" name="" scriptFormat="http://www.java.com/java">
<bpmn2:incoming>_F7DB9025-8F90-4139-9366-172758477A77</bpmn2:incoming>
<bpmn2:outgoing>_D4D28A09-C984-4DA7-8A5C-F5F9EECFF2F1</bpmn2:outgoing>
</bpmn2:scriptTask>
<bpmn2:sequenceFlow id="_F7DB9025-8F90-4139-9366-172758477A77" drools:bgcolor="#000000" drools:selectable="true" sourceRef="_C0E8024B-D23C-4371-84A6-C3F2613E4E0E" targetRef="_358A3AE2-8FF7-4D7C-AAFA-C949EF507E9E"/>
<bpmn2:task id="_1A8E2211-D3AC-447B-B6E4-7A9034F1B79D" drools:selectable="true" drools:taskName="MyTask" name="My Task">
<bpmn2:incoming>_D4D28A09-C984-4DA7-8A5C-F5F9EECFF2F1</bpmn2:incoming>
<bpmn2:outgoing>_F1EDCA41-B5A1-4951-A235-93953F8C8577</bpmn2:outgoing>
<bpmn2:ioSpecification id="_D18mASgeEeKa2dBsissNHQ">
<bpmn2:dataInput id="_1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_TaskNameInput" name="TaskName"/>
<bpmn2:dataInput id="_1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_MyThirdParamInput" drools:dtype="java.lang.Object" itemSubjectRef="__1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_MyThirdParamInputItem" name="MyThirdParam"/>
<bpmn2:dataInput id="_1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_MySecondParamInput" drools:dtype="String" itemSubjectRef="__1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_MySecondParamInputItem" name="MySecondParam"/>
<bpmn2:dataInput id="_1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_MyFirstParamInput" drools:dtype="String" itemSubjectRef="__1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_MyFirstParamInputItem" name="MyFirstParam"/>
<bpmn2:dataOutput id="_1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_ResultOutput" drools:dtype="java.lang.Object" itemSubjectRef="__1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_ResultOutputItem" name="Result"/>
<bpmn2:inputSet id="_D18mAigeEeKa2dBsissNHQ">
<bpmn2:dataInputRefs>_1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_MyThirdParamInput</bpmn2:dataInputRefs>
<bpmn2:dataInputRefs>_1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_MySecondParamInput</bpmn2:dataInputRefs>
<bpmn2:dataInputRefs>_1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_MyFirstParamInput</bpmn2:dataInputRefs>
<bpmn2:dataInputRefs>_1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_TaskNameInput</bpmn2:dataInputRefs>
</bpmn2:inputSet>
<bpmn2:outputSet id="_D18mAygeEeKa2dBsissNHQ">
<bpmn2:dataOutputRefs>_1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_ResultOutput</bpmn2:dataOutputRefs>
</bpmn2:outputSet>
</bpmn2:ioSpecification>
<bpmn2:dataInputAssociation id="_D18mBCgeEeKa2dBsissNHQ">
<bpmn2:targetRef>_1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_TaskNameInput</bpmn2:targetRef>
<bpmn2:assignment id="_D18mBSgeEeKa2dBsissNHQ">
<bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_D18mBigeEeKa2dBsissNHQ">MyTask</bpmn2:from>
<bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_D18mBygeEeKa2dBsissNHQ">_1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_TaskNameInput</bpmn2:to>
</bpmn2:assignment>
</bpmn2:dataInputAssociation>
<bpmn2:dataInputAssociation id="_D18mCCgeEeKa2dBsissNHQ">
<bpmn2:targetRef>_1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_MyThirdParamInput</bpmn2:targetRef>
<bpmn2:assignment id="_D18mCSgeEeKa2dBsissNHQ">
<bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_D18mCigeEeKa2dBsissNHQ"></bpmn2:from>
<bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_D18mCygeEeKa2dBsissNHQ">_1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_MyThirdParamInput</bpmn2:to>
</bpmn2:assignment>
</bpmn2:dataInputAssociation>
<bpmn2:dataInputAssociation id="_D18mDCgeEeKa2dBsissNHQ">
<bpmn2:targetRef>_1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_MySecondParamInput</bpmn2:targetRef>
<bpmn2:assignment id="_D18mDSgeEeKa2dBsissNHQ">
<bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_D18mDigeEeKa2dBsissNHQ"></bpmn2:from>
<bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_D18mDygeEeKa2dBsissNHQ">_1A8E2211-D3AC-447B-B6E4-7A9034F1B79D_MySecondParamInput</bpmn2:to>
</bpmn2:assignment>
</bpmn2:dataInputAssociation>
</bpmn2:task>
<bpmn2:sequenceFlow id="_D4D28A09-C984-4DA7-8A5C-F5F9EECFF2F1" drools:bgcolor="#000000" drools:selectable="true" sourceRef="_358A3AE2-8FF7-4D7C-AAFA-C949EF507E9E" targetRef="_1A8E2211-D3AC-447B-B6E4-7A9034F1B79D"/>
<bpmn2:subProcess id="_263172FF-A551-4E41-9F14-2C5BED4ECF61" drools:selectable="true" name="">
<bpmn2:incoming>_F1EDCA41-B5A1-4951-A235-93953F8C8577</bpmn2:incoming>
<bpmn2:outgoing>_C5C6C051-8379-4B02-91D9-48F1662A2F56</bpmn2:outgoing>
<bpmn2:startEvent id="_2658B9CF-CBA2-4485-8467-AFB9E658BCF3" drools:bgcolor="#9acd32" drools:selectable="true" name="">
<bpmn2:outgoing>_8D9C82F2-EE25-4258-86B5-9B7FA34371A5</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:scriptTask id="_3360513B-8ED4-4921-B5BB-AA7C1BCFB68C" drools:selectable="true" name="" scriptFormat="http://www.java.com/java">
<bpmn2:incoming>_8D9C82F2-EE25-4258-86B5-9B7FA34371A5</bpmn2:incoming>
<bpmn2:outgoing>_4B6091CD-F921-4D83-829E-B658032FA3D3</bpmn2:outgoing>
</bpmn2:scriptTask>
<bpmn2:endEvent id="_D390EDEA-04AD-40B4-98CE-ACFC5E489485" drools:bgcolor="#ff6347" drools:selectable="true" name="">
<bpmn2:incoming>_4B6091CD-F921-4D83-829E-B658032FA3D3</bpmn2:incoming>
<bpmn2:errorEventDefinition id="_D18mECgeEeKa2dBsissNHQ" errorRef="_D18mESgeEeKa2dBsissNHQ"/>
</bpmn2:endEvent>
<bpmn2:sequenceFlow id="_8D9C82F2-EE25-4258-86B5-9B7FA34371A5" drools:bgcolor="#000000" drools:selectable="true" sourceRef="_2658B9CF-CBA2-4485-8467-AFB9E658BCF3" targetRef="_3360513B-8ED4-4921-B5BB-AA7C1BCFB68C"/>
<bpmn2:sequenceFlow id="_4B6091CD-F921-4D83-829E-B658032FA3D3" drools:bgcolor="#000000" drools:selectable="true" sourceRef="_3360513B-8ED4-4921-B5BB-AA7C1BCFB68C" targetRef="_D390EDEA-04AD-40B4-98CE-ACFC5E489485"/>
</bpmn2:subProcess>
<bpmn2:sequenceFlow id="_F1EDCA41-B5A1-4951-A235-93953F8C8577" drools:bgcolor="#000000" drools:selectable="true" sourceRef="_1A8E2211-D3AC-447B-B6E4-7A9034F1B79D" targetRef="_263172FF-A551-4E41-9F14-2C5BED4ECF61"/>
<bpmn2:scriptTask id="_01DA0613-84AC-46A5-8DD9-48AEA1306C29" drools:selectable="true" name="" scriptFormat="http://www.java.com/java">
<bpmn2:incoming>_21EDC464-F371-4FDF-8466-89C5515863A4</bpmn2:incoming>
<bpmn2:outgoing>_6B75D2E5-A6B0-4124-9446-D60D4B7115BC</bpmn2:outgoing>
</bpmn2:scriptTask>
<bpmn2:sequenceFlow id="_21EDC464-F371-4FDF-8466-89C5515863A4" drools:bgcolor="#000000" drools:selectable="true" sourceRef="_063DB8ED-F560-41A1-97D0-B8D5130097A4" targetRef="_01DA0613-84AC-46A5-8DD9-48AEA1306C29"/>
<bpmn2:endEvent id="_2DCBFE14-2711-4B41-8B4F-9AA6096D7589" drools:bgcolor="#ff6347" drools:selectable="true" name="">
<bpmn2:incoming>_6B75D2E5-A6B0-4124-9446-D60D4B7115BC</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:sequenceFlow id="_6B75D2E5-A6B0-4124-9446-D60D4B7115BC" drools:bgcolor="#000000" drools:selectable="true" sourceRef="_01DA0613-84AC-46A5-8DD9-48AEA1306C29" targetRef="_2DCBFE14-2711-4B41-8B4F-9AA6096D7589"/>
<bpmn2:endEvent id="_09B4A5B0-E6C4-462B-99E3-B3987CED082C" drools:bgcolor="#ff6347" drools:selectable="true" name="">
<bpmn2:incoming>_C5C6C051-8379-4B02-91D9-48F1662A2F56</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:sequenceFlow id="_C5C6C051-8379-4B02-91D9-48F1662A2F56" drools:bgcolor="#000000" drools:selectable="true" sourceRef="_263172FF-A551-4E41-9F14-2C5BED4ECF61" targetRef="_09B4A5B0-E6C4-462B-99E3-B3987CED082C"/>
<bpmn2:boundaryEvent id="_063DB8ED-F560-41A1-97D0-B8D5130097A4" drools:bgcolor="#f5deb3" drools:selectable="true" drools:bordercolor="#a0522d" drools:boundaryca="false" name="" attachedToRef="_263172FF-A551-4E41-9F14-2C5BED4ECF61" cancelActivity="false">
<bpmn2:outgoing>_21EDC464-F371-4FDF-8466-89C5515863A4</bpmn2:outgoing>
<bpmn2:errorEventDefinition id="_D18mEigeEeKa2dBsissNHQ" errorRef="_D18mESgeEeKa2dBsissNHQ"/>
</bpmn2:boundaryEvent>
</bpmn2:process>
<bpmndi:BPMNDiagram id="_D18mEygeEeKa2dBsissNHQ">
<bpmndi:BPMNPlane id="_D18mFCgeEeKa2dBsissNHQ" bpmnElement="org.test.TestProcess">
<bpmndi:BPMNShape id="_D18mFSgeEeKa2dBsissNHQ" bpmnElement="_C0E8024B-D23C-4371-84A6-C3F2613E4E0E">
<dc:Bounds height="30.0" width="30.0" x="102.0" y="233.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_D18mFigeEeKa2dBsissNHQ" bpmnElement="_358A3AE2-8FF7-4D7C-AAFA-C949EF507E9E">
<dc:Bounds height="80.0" width="100.0" x="177.0" y="208.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="_D18mFygeEeKa2dBsissNHQ" bpmnElement="_F7DB9025-8F90-4139-9366-172758477A77">
<di:waypoint xsi:type="dc:Point" x="117.0" y="248.0"/>
<di:waypoint xsi:type="dc:Point" x="227.0" y="248.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_D18mGCgeEeKa2dBsissNHQ" bpmnElement="_1A8E2211-D3AC-447B-B6E4-7A9034F1B79D">
<dc:Bounds height="80.0" width="100.0" x="330.0" y="208.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="_D18mGSgeEeKa2dBsissNHQ" bpmnElement="_D4D28A09-C984-4DA7-8A5C-F5F9EECFF2F1">
<di:waypoint xsi:type="dc:Point" x="227.0" y="248.0"/>
<di:waypoint xsi:type="dc:Point" x="380.0" y="248.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_D18mGigeEeKa2dBsissNHQ" bpmnElement="_263172FF-A551-4E41-9F14-2C5BED4ECF61">
<dc:Bounds height="249.0" width="371.0" x="525.0" y="168.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_D18mGygeEeKa2dBsissNHQ" bpmnElement="_2658B9CF-CBA2-4485-8467-AFB9E658BCF3">
<dc:Bounds height="30.0" width="30.0" x="60.0" y="65.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_D18mHCgeEeKa2dBsissNHQ" bpmnElement="_3360513B-8ED4-4921-B5BB-AA7C1BCFB68C">
<dc:Bounds height="80.0" width="100.0" x="135.0" y="40.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_D18mHSgeEeKa2dBsissNHQ" bpmnElement="_D390EDEA-04AD-40B4-98CE-ACFC5E489485">
<dc:Bounds height="28.0" width="28.0" x="301.0" y="64.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="_D18mHigeEeKa2dBsissNHQ" bpmnElement="_8D9C82F2-EE25-4258-86B5-9B7FA34371A5">
<di:waypoint xsi:type="dc:Point" x="75.0" y="80.0"/>
<di:waypoint xsi:type="dc:Point" x="185.0" y="80.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="_D18mHygeEeKa2dBsissNHQ" bpmnElement="_4B6091CD-F921-4D83-829E-B658032FA3D3">
<di:waypoint xsi:type="dc:Point" x="185.0" y="80.0"/>
<di:waypoint xsi:type="dc:Point" x="315.0" y="78.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="_D18mICgeEeKa2dBsissNHQ" bpmnElement="_F1EDCA41-B5A1-4951-A235-93953F8C8577">
<di:waypoint xsi:type="dc:Point" x="380.0" y="248.0"/>
<di:waypoint xsi:type="dc:Point" x="477.0" y="248.0"/>
<di:waypoint xsi:type="dc:Point" x="477.0" y="292.0"/>
<di:waypoint xsi:type="dc:Point" x="710.5" y="292.5"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_D18mISgeEeKa2dBsissNHQ" bpmnElement="_01DA0613-84AC-46A5-8DD9-48AEA1306C29">
<dc:Bounds height="80.0" width="100.0" x="956.0" y="318.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="_D18mIigeEeKa2dBsissNHQ" bpmnElement="_21EDC464-F371-4FDF-8466-89C5515863A4">
<di:waypoint xsi:type="dc:Point" x="896.0" y="358.0"/>
<di:waypoint xsi:type="dc:Point" x="1006.0" y="358.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_D18mIygeEeKa2dBsissNHQ" bpmnElement="_2DCBFE14-2711-4B41-8B4F-9AA6096D7589">
<dc:Bounds height="28.0" width="28.0" x="1099.0" y="342.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="_D18mJCgeEeKa2dBsissNHQ" bpmnElement="_6B75D2E5-A6B0-4124-9446-D60D4B7115BC">
<di:waypoint xsi:type="dc:Point" x="1006.0" y="358.0"/>
<di:waypoint xsi:type="dc:Point" x="1113.0" y="356.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_D18mJSgeEeKa2dBsissNHQ" bpmnElement="_09B4A5B0-E6C4-462B-99E3-B3987CED082C">
<dc:Bounds height="28.0" width="28.0" x="1018.0" y="232.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="_D18mJigeEeKa2dBsissNHQ" bpmnElement="_C5C6C051-8379-4B02-91D9-48F1662A2F56">
<di:waypoint xsi:type="dc:Point" x="710.5" y="292.5"/>
<di:waypoint xsi:type="dc:Point" x="958.0" y="292.0"/>
<di:waypoint xsi:type="dc:Point" x="958.0" y="248.0"/>
<di:waypoint xsi:type="dc:Point" x="1032.0" y="246.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_D18mJygeEeKa2dBsissNHQ" bpmnElement="_063DB8ED-F560-41A1-97D0-B8D5130097A4">
<dc:Bounds height="30.0" width="30.0" x="881.0" y="343.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="_D18mKCgeEeKa2dBsissNHQ" bpmnElement="_063DB8ED-F560-41A1-97D0-B8D5130097A4">
<di:waypoint xsi:type="dc:Point" x="362.0" y="187.0"/>
<di:waypoint xsi:type="dc:Point" x="362.0" y="187.0"/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>
https://community.jboss.org/servlet/JiveServlet/showImage/2-775095-19841/org.test.TestProcess.png https://community.jboss.org/servlet/JiveServlet/downloadImage/2-775095-19841/450-172/org.test.TestProcess.png
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/775095#775095]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121106/c5b4f030/attachment-0001.html
More information about the jboss-user
mailing list