<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Duplicate entries in bpmn2 file
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/dmwpepper">David Harris</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/811311#811311">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>I'm getting the following error when executing a process that references a work item definition file:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><p><p><div><span style="font-size: 10pt;">  </span></div></p></p></p><p><p><div><span style="font-size: 10pt;"><p align="left"><span style="color: #ff0000;">0 02/05 15:15:16,856[main] ERROR drools.xml.ExtensibleXmlParser.error - (null: 40, 62): cvc-id.2: There are multiple occurrences of ID value '_4_Source_IPInput'.</span></p><p><p align="left"><span style="color: #ff0000;">16 02/05 15:15:16,872[main] ERROR drools.xml.ExtensibleXmlParser.error - (null: 40, 62): cvc-attribute.3: The value '_4_Source_IPInput' of attribute 'id' on element 'dataInput' is not valid with respect to its type, 'ID'.</span></p><p align="left"><span style="color: #ff0000;">16 02/05 15:15:16,872[main] ERROR drools.xml.ExtensibleXmlParser.error - (null: 41, 64): cvc-id.2: There are multiple occurrences of ID value '_4_Start_DateInput'.</span></p><p align="left"><span style="color: #ff0000;">16 02/05 15:15:16,872[main] ERROR drools.xml.ExtensibleXmlParser.error - (null: 41, 64): cvc-attribute.3: The value '_4_Start_DateInput' of attribute 'id' on element 'dataInput' is not valid with respect to its type, 'ID'.</span></p><p align="left"><span style="color: #ff0000;">16 02/05 15:15:16,872[main] ERROR drools.xml.ExtensibleXmlParser.error - (null: 42, 60): cvc-id.2: There are multiple occurrences of ID value '_4_End_DateInput'.</span></p><p align="left"><span style="color: #ff0000;">16 02/05 15:15:16,872[main] ERROR drools.xml.ExtensibleXmlParser.error - (null: 42, 60): cvc-attribute.3: The value '_4_End_DateInput' of attribute 'id' on element 'dataInput' is not valid with respect to its type, 'ID'.</span></p></p></span></div></p></p><div><span style="font-size: 10pt;"><p align="left"><span style="color: #008000;">parameters passed into work item: 111.111.111.111,2013 05 02 09:00:00,2013 04 02 09:00:00<a class="jive-link-anchor-small" rel="nofollow">#</a><a class="jive-link-anchor-small" rel="nofollow">#</a><a class="jive-link-anchor-small" rel="nofollow">#</a></span><a class="jive-link-anchor-small" rel="nofollow">#</a></p><p><p align="left"><span style="color: #008000; font-size: 10pt;"></span></p><p align="left"><span style="color: #008000; font-size: 10pt;"></span></p></p><p align="left"><span style="color: #008000; font-size: 10pt;">The last line above, in green, was the output I expected.  Looking at the bpmn2 file below shows the duplicate xml occurences, though I'm not sure why the duplication is occuring.</span></p></span><p><span style="font-size: 10pt;"><p><p align="left"><span style="color: #008000; font-size: 10pt;"></span></p></p><p align="left"><div align="left"><span style="color: #008000;"><p align="left"><p align="left"><div align="left"><span style="font-size: 10pt;"></span></div></p></p><span style="font-size: 10pt;"><p align="left"><?<span style="text-decoration: underline;">xml</span> version="1.0" encoding="UTF-8"?> </p><p align="left"><definitions id="Definition"</p><p align="left"><span>targetNamespace="</span><a class="jive-link-external-small" href="http://www.jboss.org/drools" target="_blank">http://www.jboss.org/drools</a><span>"</span></p><p align="left"><span>typeLanguage="</span><a class="jive-link-external-small" href="http://www.java.com/javaTypes" rel="nofollow" target="_blank">http://www.java.com/javaTypes</a><span>"</span></p><p align="left"><span>expressionLanguage="</span><a class="jive-link-external-small" href="http://www.mvel.org/2.0" rel="nofollow" target="_blank">http://www.mvel.org/2.0</a><span>"</span></p><p align="left"><span style="text-decoration: underline;">xmlns</span><span>="</span><a class="jive-link-external-small" href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow" target="_blank">http://www.omg.org/spec/BPMN/20100524/MODEL</a><span>"</span></p><p align="left"><span>xmlns:xsi="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>"</span></p><p align="left"><span>xsi:schemaLocation="</span><a class="jive-link-external-small" href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow" target="_blank">http://www.omg.org/spec/BPMN/20100524/MODEL</a><span> BPMN20.</span><span style="text-decoration: underline;">xsd</span>"</p><p align="left"><span>xmlns:g="</span><a class="jive-link-external-small" href="http://www.jboss.org/drools/flow/gpd" target="_blank">http://www.jboss.org/drools/flow/gpd</a><span>"</span></p><p align="left"><span>xmlns:bpmndi="</span><a class="jive-link-external-small" href="http://www.omg.org/spec/BPMN/20100524/DI" rel="nofollow" target="_blank">http://www.omg.org/spec/BPMN/20100524/DI</a><span>"</span></p><p align="left"><span>xmlns:dc="</span><a class="jive-link-external-small" href="http://www.omg.org/spec/DD/20100524/DC" rel="nofollow" target="_blank">http://www.omg.org/spec/DD/20100524/DC</a><span>"</span></p><p align="left"><span>xmlns:di="</span><a class="jive-link-external-small" href="http://www.omg.org/spec/DD/20100524/DI" rel="nofollow" target="_blank">http://www.omg.org/spec/DD/20100524/DI</a><span>"</span></p><p align="left"><span>xmlns:tns="</span><a class="jive-link-external-small" href="http://www.jboss.org/drools" target="_blank">http://www.jboss.org/drools</a><span>"></span></p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left"><itemDefinition id="_processIPItem" structureRef="String" /></p><p align="left"><itemDefinition id="_processStartDateItem" structureRef="String" /></p><p align="left"><itemDefinition id="_processEndDateItem" structureRef="String" /></p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left"><itemDefinition id="_4-processIPItem" structureRef="String" /></p><p align="left"><itemDefinition id="_4-processStartDateItem" structureRef="String" /></p><p align="left"><itemDefinition id="_4-processEndDateItem" structureRef="String" /></p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left"><process processType="Private" isExecutable="true" id="com.sample.bpmn.hello" name="Hello World" ></p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left"><!-- process variables --></p><p align="left"><property id="processIP" itemSubjectRef="_processIPItem"/></p><p align="left"><property id="processStartDate" itemSubjectRef="_processStartDateItem"/></p><p align="left"><property id="processEndDate" itemSubjectRef="_processEndDateItem"/></p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left"><!-- nodes --></p><p align="left"><startEvent id="_1" name="StartProcess" /></p><p align="left"><endEvent id="_3" name="EndProcess" ></p><p align="left"><terminateEventDefinition /></p><p align="left"></endEvent></p><p align="left"><task id="_4" name="IP Conversations" tns:taskName="IP Conversations" ></p><p align="left"><ioSpecification></p></span></span></div></p><span style="color: #008000; font-size: 10pt;"><p align="left"><span style="color: #ff0000;"><dataInput id="_4_Source_IPInput" name="Source_IP" /></span></p><p align="left"><p align="left"><span style="color: #ff0000;"><dataInput id="_4_Start_DateInput" name="Start_Date" /></span></p><p align="left"><span style="color: #ff0000;"><dataInput id="_4_End_DateInput" name="End_Date" /></span></p><p align="left"><span style="color: #ff0000;"><dataInput id="_4_Source_IPInput" name="Source_IP" /></span></p><p align="left"><span style="color: #ff0000;"><dataInput id="_4_Start_DateInput" name="Start_Date" /></span></p><p align="left"><span style="color: #ff0000;"><dataInput id="_4_End_DateInput" name="End_Date" /></span></p><p align="left"><inputSet></p></p><p align="left"><span style="color: #ff0000;"><dataInputRefs>_4_Source_IPInput</dataInputRefs></span></p><p align="left"><p align="left"><span style="color: #ff0000;"><dataInputRefs>_4_Start_DateInput</dataInputRefs></span></p><p align="left"><span style="color: #ff0000;"><dataInputRefs>_4_End_DateInput</dataInputRefs></span></p><p align="left"><span style="color: #ff0000;"><dataInputRefs>_4_Source_IPInput</dataInputRefs></span></p><p align="left"><span style="color: #ff0000;"><dataInputRefs>_4_Start_DateInput</dataInputRefs></span></p><p align="left"><span style="color: #ff0000;"><dataInputRefs>_4_End_DateInput</dataInputRefs></span></p><p align="left"></inputSet></p><p align="left"><outputSet></p><p align="left"></outputSet></p><p align="left"></ioSpecification></p><p align="left"><dataInputAssociation></p><p align="left"><sourceRef>processIP</sourceRef></p><p align="left"><targetRef>_4_Source_IPInput</targetRef></p><p align="left"></dataInputAssociation></p><p align="left"><dataInputAssociation></p><p align="left"><sourceRef>processStartDate</sourceRef></p><p align="left"><targetRef>_4_Start_DateInput</targetRef></p><p align="left"></dataInputAssociation></p><p align="left"><dataInputAssociation></p><p align="left"><sourceRef>processEndDate</sourceRef></p><p align="left"><targetRef>_4_End_DateInput</targetRef></p><p align="left"></dataInputAssociation></p><p align="left"><dataInputAssociation></p><p align="left"><targetRef>_4_Source_IPInput</targetRef></p><p align="left"><assignment></p><p align="left"><from xsi:type="tFormalExpression"></from></p><p align="left"><to xsi:type="tFormalExpression">_4_Source_IPInput</to></p><p align="left"></assignment></p><p align="left"></dataInputAssociation></p><p align="left"><dataInputAssociation></p><p align="left"><targetRef>_4_Start_DateInput</targetRef></p><p align="left"><assignment></p><p align="left"><from xsi:type="tFormalExpression"></from></p><p align="left"><to xsi:type="tFormalExpression">_4_Start_DateInput</to></p><p align="left"></assignment></p><p align="left"></dataInputAssociation></p><p align="left"><dataInputAssociation></p><p align="left"><targetRef>_4_End_DateInput</targetRef></p><p align="left"><assignment></p><p align="left"><from xsi:type="tFormalExpression"></from></p><p align="left"><to xsi:type="tFormalExpression">_4_End_DateInput</to></p><p align="left"></assignment></p><p align="left"></dataInputAssociation></p><p align="left"></task></p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left"><!-- connections --></p><p align="left"><sequenceFlow id="_4-_3" sourceRef="_4" targetRef="_3" /></p><p align="left"><sequenceFlow id="_1-_4" sourceRef="_1" targetRef="_4" /></p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left"></process></p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left"><bpmndi:BPMNDiagram></p><p align="left"><bpmndi:BPMNPlane bpmnElement="com.sample.bpmn.hello" ></p><p align="left"><bpmndi:BPMNShape bpmnElement="_1" ></p><p align="left"><dc:Bounds x="148" y="103" width="48" height="48" /></p><p align="left"></bpmndi:BPMNShape></p><p align="left"><bpmndi:BPMNShape bpmnElement="_3" ></p><p align="left"><dc:Bounds x="482" y="101" width="48" height="48" /></p><p align="left"></bpmndi:BPMNShape></p><p align="left"><bpmndi:BPMNShape bpmnElement="_4" ></p><p align="left"><dc:Bounds x="249" y="101" width="178" height="48" /></p><p align="left"></bpmndi:BPMNShape></p><p align="left"><bpmndi:BPMNEdge bpmnElement="_4-_3" ></p><p align="left"><di:waypoint x="338" y="125" /></p><p align="left"><di:waypoint x="506" y="125" /></p><p align="left"></bpmndi:BPMNEdge></p><p align="left"><bpmndi:BPMNEdge bpmnElement="_1-_4" ></p><p align="left"><di:waypoint x="172" y="127" /></p><p align="left"><di:waypoint x="338" y="125" /></p><p align="left"></bpmndi:BPMNEdge></p><p align="left"></bpmndi:BPMNPlane></p><p align="left"></bpmndi:BPMNDiagram></p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p></definitions></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="color: #008000; font-size: 10pt;">The .wid file contains</span></p></p><span style="font-size: 10pt;">  <p align="left">[</p><p align="left">"name" : "IP Conversations",</p><p align="left">"parameters" : [</p><p align="left">"Source_IP" : new StringDataType(),</p><p align="left">"Start_Date" : new StringDataType(),</p><p align="left">"End_Date" : new StringDataType()</p><p align="left">],</p><p align="left">"results" : [</p><p align="left">"Source_IPs" : new StringDataType(),</p><p align="left">"Source_Ports" : new StringDataType(),</p><p align="left">"Dest_IPs" : new StringDataType(),</p><p align="left">"Dest_Ports" : new StringDataType(),</p><p align="left">"Recv_Time" : new StringDataType()</p><p align="left">],</p><p align="left">"displayName" : "IP Conversations"</p></span></span></span></p><p>],</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="color: #008000; font-size: 10pt;">Anyone have any ideas?  Thanks!</span></p></div></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/811311#811311">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>