[jboss-user] [jBPM] - Duplicate entries in bpmn2 file

David Harris do-not-reply at jboss.com
Thu May 2 15:50:16 EDT 2013


David Harris [https://community.jboss.org/people/dmwpepper] created the discussion

"Duplicate entries in bpmn2 file"

To view the discussion, visit: https://community.jboss.org/message/811311#811311

--------------------------------------------------------------
I'm getting the following error when executing a process that references a work item definition file:

  
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'.
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'.
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'.
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'.
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'.
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'.

parameters passed into work item: 111.111.111.111,2013 05 02 09:00:00,2013 04 02 09:00:00####


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.


<?xml version="1.0" encoding="UTF-8"?> 
<definitions id="Definition"
targetNamespace="http://www.jboss.org/drools"
typeLanguage="http://www.java.com/javaTypes"
expressionLanguage="http://www.mvel.org/2.0"
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"
xmlns:g="http://www.jboss.org/drools/flow/gpd"
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:tns="http://www.jboss.org/drools">

<itemDefinition id="_processIPItem" structureRef="String" />
<itemDefinition id="_processStartDateItem" structureRef="String" />
<itemDefinition id="_processEndDateItem" structureRef="String" />

<itemDefinition id="_4-processIPItem" structureRef="String" />
<itemDefinition id="_4-processStartDateItem" structureRef="String" />
<itemDefinition id="_4-processEndDateItem" structureRef="String" />

<process processType="Private" isExecutable="true" id="com.sample.bpmn.hello" name="Hello World" >

<!-- process variables -->
<property id="processIP" itemSubjectRef="_processIPItem"/>
<property id="processStartDate" itemSubjectRef="_processStartDateItem"/>
<property id="processEndDate" itemSubjectRef="_processEndDateItem"/>

<!-- nodes -->
<startEvent id="_1" name="StartProcess" />
<endEvent id="_3" name="EndProcess" >
<terminateEventDefinition />
</endEvent>
<task id="_4" name="IP Conversations" tns:taskName="IP Conversations" >
<ioSpecification>

<dataInput id="_4_Source_IPInput" name="Source_IP" />
<dataInput id="_4_Start_DateInput" name="Start_Date" />
<dataInput id="_4_End_DateInput" name="End_Date" />
<dataInput id="_4_Source_IPInput" name="Source_IP" />
<dataInput id="_4_Start_DateInput" name="Start_Date" />
<dataInput id="_4_End_DateInput" name="End_Date" />
<inputSet>
<dataInputRefs>_4_Source_IPInput</dataInputRefs>
<dataInputRefs>_4_Start_DateInput</dataInputRefs>
<dataInputRefs>_4_End_DateInput</dataInputRefs>
<dataInputRefs>_4_Source_IPInput</dataInputRefs>
<dataInputRefs>_4_Start_DateInput</dataInputRefs>
<dataInputRefs>_4_End_DateInput</dataInputRefs>
</inputSet>
<outputSet>
</outputSet>
</ioSpecification>
<dataInputAssociation>
<sourceRef>processIP</sourceRef>
<targetRef>_4_Source_IPInput</targetRef>
</dataInputAssociation>
<dataInputAssociation>
<sourceRef>processStartDate</sourceRef>
<targetRef>_4_Start_DateInput</targetRef>
</dataInputAssociation>
<dataInputAssociation>
<sourceRef>processEndDate</sourceRef>
<targetRef>_4_End_DateInput</targetRef>
</dataInputAssociation>
<dataInputAssociation>
<targetRef>_4_Source_IPInput</targetRef>
<assignment>
<from xsi:type="tFormalExpression"></from>
<to xsi:type="tFormalExpression">_4_Source_IPInput</to>
</assignment>
</dataInputAssociation>
<dataInputAssociation>
<targetRef>_4_Start_DateInput</targetRef>
<assignment>
<from xsi:type="tFormalExpression"></from>
<to xsi:type="tFormalExpression">_4_Start_DateInput</to>
</assignment>
</dataInputAssociation>
<dataInputAssociation>
<targetRef>_4_End_DateInput</targetRef>
<assignment>
<from xsi:type="tFormalExpression"></from>
<to xsi:type="tFormalExpression">_4_End_DateInput</to>
</assignment>
</dataInputAssociation>
</task>

<!-- connections -->
<sequenceFlow id="_4-_3" sourceRef="_4" targetRef="_3" />
<sequenceFlow id="_1-_4" sourceRef="_1" targetRef="_4" />

</process>

<bpmndi:BPMNDiagram>
<bpmndi:BPMNPlane bpmnElement="com.sample.bpmn.hello" >
<bpmndi:BPMNShape bpmnElement="_1" >
<dc:Bounds x="148" y="103" width="48" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_3" >
<dc:Bounds x="482" y="101" width="48" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_4" >
<dc:Bounds x="249" y="101" width="178" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="_4-_3" >
<di:waypoint x="338" y="125" />
<di:waypoint x="506" y="125" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_1-_4" >
<di:waypoint x="172" y="127" />
<di:waypoint x="338" y="125" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>

</definitions>


The .wid file contains
  [
"name" : "IP Conversations",
"parameters" : [
"Source_IP" : new StringDataType(),
"Start_Date" : new StringDataType(),
"End_Date" : new StringDataType()
],
"results" : [
"Source_IPs" : new StringDataType(),
"Source_Ports" : new StringDataType(),
"Dest_IPs" : new StringDataType(),
"Dest_Ports" : new StringDataType(),
"Recv_Time" : new StringDataType()
],
"displayName" : "IP Conversations"

],

Anyone have any ideas?  Thanks!
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/811311#811311]

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/20130502/ad9ae855/attachment-0001.html 


More information about the jboss-user mailing list