Problem with BPMN2.0 Dataflow [message #892459] |
Thu, 28 June 2012 06:06  |
Eclipse User |
|
|
|
Hi Everyone,
So, this I'm having right now a Problem when I try to parse a BPMN2.0 file that has dataflow elements associated to it.
I've tried almost everything, here I post some examples I've used:
1). This example has an association of one data input object and one dataoutput object, both data objects are defined after the task.
<task completionQuantity="1" id="sid-E52D1B8B-5CAC-4FC4-93C4-0754F601C976" isForCompensation="false" name="Task1" startQuantity="1">
<incoming>sid-E2E3A294-1852-4F7C-BD5E-0D370BA548F2</incoming>
<outgoing>sid-6D8AB201-CC1E-41BC-9BDB-03104E0214B4</outgoing>
<ioSpecification>
<dataInput id="dataInput" isCollection="false" />
<dataOutput id="dataOutput" isCollection="false" />
</ioSpecification>
<dataInputAssociation id="sid-F2D9423B-0E4B-4F48-BF2F-40B9E282F3CB">
<sourceRef>Inputobj</sourceRef>
<targetRef>dataInput</targetRef>
</dataInputAssociation>
<dataOutputAssociation id="sid-ACB1597E-1959-4EA3-8ACD-BC361C705152">
<sourceRef>dataOutput</sourceRef>
<targetRef>Outputobj</targetRef>
</dataOutputAssociation>
</task>
<dataObject id="Outputobj" isCollection="false" name="OutputTask1">
</dataObject>
<dataObject id="Inputobj" isCollection="false" name="InputTask1">
</dataObject>
I'm getting this error: org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.IllegalValueException: Value 'org.eclipse.bpmn2.impl.DataObjectImpl@77485542 (id: sid-942EA3F7-9F55-4E4A-A38A-29E226CEBC0C, anyAttribute: null) (name: OutputTask1) (isCollection: false)' is not legal. (file:/C:/Users/admin/Documents/Tesis/Projekt/Workspaces/Bpmn2Bpel/TestSeq2.xml, -1, -1)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:315)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:397)
at bpmn2_importer.ApplicationStarter.start(ApplicationStarter.java:36)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: org.eclipse.emf.ecore.xmi.IllegalValueException: Value 'org.eclipse.bpmn2.impl.DataObjectImpl@77485542 (id: sid-942EA3F7-9F55-4E4A-A38A-29E226CEBC0C, anyAttribute: null) (name: OutputTask1) (isCollection: false)' is not legal. (file:/C:/Users/admin/Documents/Tesis/Projekt/Workspaces/Bpmn2Bpel/TestSeq2.xml, -1, -1)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XMLHandler.java:2663)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardReferences(XMLHandler.java:1149)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHandler.java:1228)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:737)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:516)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:181)
at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:242)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1511)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1290)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:255)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:270)
... 15 more
Somehow the values of the DataObjects I have are wrong, but I can't figure out why, all the associations seem to be correct.
Please a little bit help there 
Thanks in advance!
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03315 seconds