[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mdt-bpmn2.dev] Problems with targetNamespace


I write you because I've a question I asked in the BPMN 2.0 Modeler Eclipse Forum and they suggest me to put the question here.
I'm new in BPMN2, EMF and ATL and I begin working with ATL transformations from BPMN 2.0 to other languages.
My metamodel is the file (.ecore) with the BPMN20 specifications of the official site (http://www.omg.org/spec/BPMN/2.0/) and my model XMI file is:

<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0" xmlns:bpmn="www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmnxmi="www.omg.org/spec/BPMN/20100524/MODEL-XMI" xmlns:dcxmi="www.omg.org/spec/DD/20100524/DC-XMI" xmlns:bpmndi="www.omg.org/spec/BPMN/20100524/DI" xmlns:dixmi="www.omg.org/spec/DD/20100524/DI-XMI" xmlns:bpmndixmi="www.omg.org/spec/BPMN/20100524/DI-XMI" xmlns:xmi="schema.omg.org/spec/XMI" xmlns:di="www.omg.org/spec/DD/20100524/DI" xmlns:dc="www.omg.org/spec/DD/20100524/DC">
<bpmnxmi:Definitions targetNamespace="www.brigid.net/bpmn20" expressionLanguage="www.w3.org/1999/XPath" typeLanguage="www.w3.org/2001/XMLSchema">
<rootElements xmi:type="bpmnxmi:Process" id="P1_sequence" name="P1 - Sequence">
<flowElements xmi:type="bpmnxmi:EndEvent" id="end" name="End" incoming="flow_C_end "/>
<flowElements xmi:type="bpmnxmi:SequenceFlow" id="flow_Start_A" targetRef="action_A " sourceRef="start01 "/>
<flowElements xmi:type="bpmnxmi:SequenceFlow" id="flow_A_B" targetRef="action_B " sourceRef="action_A "/>
<flowElements xmi:type="bpmnxmi:SequenceFlow" id="flow_B_C" targetRef="action_C " sourceRef="action_B "/>
<flowElements xmi:type="bpmnxmi:SequenceFlow" id="flow_C_end" targetRef="end " sourceRef="action_C "/>
<flowElements xmi:type="bpmnxmi:StartEvent" id="start01" name="Start" outgoing="flow_Start_A "/>
<flowElements xmi:type="bpmnxmi:Task" id="action_A" name="Action A" outgoing="flow_A_B " incoming="flow_Start_A "/>
<flowElements xmi:type="bpmnxmi:Task" id="action_B" name="Action B" outgoing="flow_B_C " incoming="flow_A_B "/>
<flowElements xmi:type="bpmnxmi:Task" id="action_C" name="Action C" outgoing="flow_C_end " incoming="flow_B_C "/>
<laneSets xmi:type="bpmnxmi:LaneSet" id="laneSet01" name="LaneSet01">
<lanes xmi:type="bpmnxmi:Lane" id="lane01" name="Lane01" flowNodeRefs="flow_Start_A flow_A_B flow_B_C flow_C_end "/>

I don't generate that model (.XMI) with BPMN they supply me like a part of my project.
The XMI-model has not packages, then I don't need to register the XMI-model? In fact, when I right-click in the file the option for that, no appears.

I've problems when I run the transformations.
And I've the next error: "value of TargetNamespace is not legal".

I've send a topic to the ATL forum and they, first suggest me to open with the Sample Reflective Ecore Model Editor to check
the validity of my XMI file. Then when I open with this editor I've get the next error:
"org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'www.omg.org/spec/BPMN/20100524/MODEL-XMI' not found."

After that, they suggest me to verify if my metamodel is loaded in the EMF Registry.
For that, I've install a new version of Eclipse with Epsilon and Emfatic.
Then I've registered the metamodels I use:

and I've get still the initial error when I open with the Sample Reflective Ecore Model Editor: "value of TargetNamespace is not legal".

I've tested then, with other normally correct values (for targetNamespace)?:

and I've always the same error, when I open with the Sample Reflective Ecore Model Editor.

Anyone knows if there is a solution for the problem related with this issue or if it's other the problem I have?
Pherhaps I have to register other metamodels?, or I have to install new software in Eclipse, new XML, ATL packages, ...????
What registrations I need in order to read instances? Maybe I need a specialized resource implementation as part of my project?

Could that be related with the issue (16398) in www.omg.org/issues/bpmn2-rtf.open.html?:

Issue 16398: XML Schema not valid (bpmn2-rtf)

Nature: Clarification
Severity: Significant
The official XML Schema for BPMN 2.0 (www.omg.org/spec/BPMN/20100501/BPMN20.xsd) is not valid.

- It imports a schema with the schemaLocation "www.omg.org/spec/BPMN/20100501/Diagram Interchange.xsd", which does not exist.
Even when using the correct schemaLocation of "www.omg.org/spec/BPMN/20100501/DI.xsd", the namespace does not match (www.omg.com/di/1.0.0 vs. www.omg.org/spec/DD/20100524/DI)
(Note that one uses "omg.com" and the other uses "omg.org".)

- It includes the Schema "www.omg.org/spec/BPMN/20100501/Semantic.xsd", but its targetNamespace www.omg.org/spec/BPMN/20100524/MODEL does not match the including schema's value.

- The website www.omg.org/spec/BPMN/2.0/ has missmatching links for several items:
-- "www.omg.org/spec/BPMN/20100501/DI.xsd" links to      "www.omg.org/spec/BPMN/20100501/BPMNDI.xsd"
-- "www.omg.org/spec/BPMN/20100501/Semantic.xsd" links to "      www.omg.org/spec/BPMN/20100501/BPMNDI.xsd"

Revised Text:
Actions taken:
July 28, 2011: received issue

I've send a comment on this issue to bpmn2-rtf@xxxxxxx like it's suggested in the site refered above, but no reply still.

Thanks in advance.