Importing Cameo/MagicDraw model into Eclipse modeler

202 views
Skip to first unread message

galen...@gmail.com

unread,
Jan 29, 2014, 5:36:37 PM1/29/14
to camunda-...@googlegroups.com
Hi,

When I open a very simple BPMN 2.0 diagram generated by in the Eclipse modeler generated by MagicDraw/Cameo, I get several errors, and no diagram is displayed.

Here are the representative errors I see:

org.camunda.bpm.modeler.core.importer.UnmappedElementException: Element _17_0_2_3_beb02fc_1391023628664_426368_24628: Diagram element not found, element will not be shown

org.camunda.bpm.modeler.core.importer.ImportException: BPMNPlane not associated with process

org.camunda.bpm.modeler.core.importer.UnmappedElementException: Element _17_0_2_3_beb02fc_1391023628667_576700_24631: BPMNEdge references unexisting bpmnElement


+++++++++++++++++++++++++++++++


Here is what the bottom of my BPMN XML looks like:

...
...
</process>
<ns3:BPMNDiagram id="_17_0_2_3_beb02fc_1391023420156_755772_24401_diagram_0" name="LearnCameo">
<ns3:BPMNPlane bpmnElement="ns3:_17_0_2_3_beb02fc_1391023420156_755772_24401" id="_17_0_2_3_beb02fc_1391023420216_911942_24421">
<ns3:BPMNShape bpmnElement="ns3:_17_0_2_3_beb02fc_1391023432858_434367_24432" id="_17_0_2_3_beb02fc_1391023432865_654614_24436">
<ns4:Bounds height="25.0" width="25.0" y="100.0" x="37.0"/>
</ns3:BPMNShape>
...
...

++++++++++++++++++++++++++++++++++

Is this perhaps related to this bug?

http://jira.codehaus.org/browse/ACT-697

++++++++++++++++++++++++++++++++++

We are basically trying to prove that simple, non-executable BPMN 2.0 can be opened in the Eclipse modeler, where it can then be converted into an executable process definition.

Thanks,
Galen

Nico Rehwaldt

unread,
Jan 30, 2014, 7:47:20 AM1/30/14
to
Hi Galen, 

I would like to confirm this as a bug, if it is any.

Could you attach the simplest example possible that reproduces the problem?

It is not related to the above bug. The camunda Modeler and the Activiti Designer have no common code base.

Regards, 

Nico

galen...@gmail.com

unread,
Feb 4, 2014, 4:51:02 PM2/4/14
to camunda-...@googlegroups.com
Hi Nico,

How do you attach a document in this forum? In any case, here is the contents of the Cameo-produced file:

It is a simple start->servicetask->end process.


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:ns2="http://www.omg.org/spec/DD/20100524/DI" xmlns:ns3="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:ns4="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="http://www.omg.org/spec/BPMN/20100524/MODEL" name="Data" id="eee_1045467100313_135436_1" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
<process isClosed="false" processType="None" name="Simple" id="_17_0_2_3_beb02fc_1391549269041_801091_24401">
<startEvent name="" id="_17_0_2_3_beb02fc_1391549274152_343712_24432">
<outgoing>_17_0_2_3_beb02fc_1391549299453_430323_24491</outgoing>
</startEvent>
<serviceTask implementation="##WebService" completionQuantity="1" startQuantity="1" isForCompensation="false" name="" id="_17_0_2_3_beb02fc_1391549283498_146033_24453">
<incoming>_17_0_2_3_beb02fc_1391549299453_430323_24491</incoming>
<outgoing>_17_0_2_3_beb02fc_1391549303742_834069_24500</outgoing>
</serviceTask>
<endEvent name="" id="_17_0_2_3_beb02fc_1391549292668_302285_24477">
<incoming>_17_0_2_3_beb02fc_1391549303742_834069_24500</incoming>
</endEvent>
<sequenceFlow targetRef="_17_0_2_3_beb02fc_1391549283498_146033_24453" sourceRef="_17_0_2_3_beb02fc_1391549274152_343712_24432" name="" id="_17_0_2_3_beb02fc_1391549299453_430323_24491"/>
<sequenceFlow targetRef="_17_0_2_3_beb02fc_1391549292668_302285_24477" sourceRef="_17_0_2_3_beb02fc_1391549283498_146033_24453" name="" id="_17_0_2_3_beb02fc_1391549303742_834069_24500"/>
</process>
<ns3:BPMNDiagram id="_17_0_2_3_beb02fc_1391549269041_801091_24401_diagram_0" name="Simple">
<ns3:BPMNPlane bpmnElement="ns3:_17_0_2_3_beb02fc_1391549269041_801091_24401" id="_17_0_2_3_beb02fc_1391549269051_457745_24421">
<ns3:BPMNShape bpmnElement="ns3:_17_0_2_3_beb02fc_1391549274152_343712_24432" id="_17_0_2_3_beb02fc_1391549274155_733321_24436">
<ns4:Bounds height="25.0" width="25.0" y="63.0" x="28.0"/>
</ns3:BPMNShape>
<ns3:BPMNShape bpmnElement="ns3:_17_0_2_3_beb02fc_1391549283498_146033_24453" id="_17_0_2_3_beb02fc_1391549283505_159378_24464">
<ns4:Bounds height="50.0" width="120.0" y="50.0" x="105.0"/>
</ns3:BPMNShape>
<ns3:BPMNShape bpmnElement="ns3:_17_0_2_3_beb02fc_1391549292668_302285_24477" id="_17_0_2_3_beb02fc_1391549292670_215289_24480">
<ns4:Bounds height="25.0" width="25.0" y="63.0" x="294.0"/>
</ns3:BPMNShape>
<ns3:BPMNEdge bpmnElement="ns3:_17_0_2_3_beb02fc_1391549299453_430323_24491" id="_17_0_2_3_beb02fc_1391549299456_784068_24494">
<ns2:waypoint y="75.0" x="53.0"/>
<ns2:waypoint y="75.0" x="105.0"/>
</ns3:BPMNEdge>
<ns3:BPMNEdge bpmnElement="ns3:_17_0_2_3_beb02fc_1391549303742_834069_24500" id="_17_0_2_3_beb02fc_1391549303746_539601_24503">
<ns2:waypoint y="75.0" x="225.0"/>
<ns2:waypoint y="75.0" x="294.0"/>
</ns3:BPMNEdge>
</ns3:BPMNPlane>
</ns3:BPMNDiagram>
</definitions>

Thanks,
Galen

galen...@gmail.com

unread,
Feb 4, 2014, 5:09:15 PM2/4/14
to camunda-...@googlegroups.com, galen...@gmail.com
Hi Nico,

As a further data point, it looks like if you replace the "ns3:_" with "_" in the bpmnElement attributes, it works...

Thanks,
Galen

Christian Lipphardt

unread,
Feb 5, 2014, 3:53:35 AM2/5/14
to camunda-...@googlegroups.com, galen...@gmail.com
Hi Galen,

You confirm what we thought. It is related to the usage of the namespace inside the bpmnElement reference.
I have to lookup if this is a valid xml practice.

Cheers
Christian

adrian...@gmail.com

unread,
Aug 1, 2014, 3:35:28 AM8/1/14
to camunda-...@googlegroups.com, galen...@gmail.com

Hi Christian,

Has there been a resolution to this?

We have MagicDraw/Cameo generated process definitions that we'd like to load to the camunda Modeler so we can add the appropriate execution semantics to them. Currently, we are thinking of writing a script to strip out the namespaces in the bpmnElement reference to make it work. Just wondering if this is something that will be supported by future releases of the camunda Modeler.

Thanks!
-Adrian

Reply all
Reply to author
Forward
0 new messages