Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MDT (Model Development Tools) » [BPMN2](help)
[BPMN2] [message #896305] Tue, 17 July 2012 23:51
Rossano Fiore is currently offline Rossano Fiore
Messages: 1
Registered: July 2012
Junior Member
Hello henning,
I'm trying to make a translation with ATL "bpmn2toCTLS", I have problems in the metamodel "BPMN2": I downloaded "bpmndi.ecore" and "bpmn20.ecore", "bpmndi.ecore" contains "bpmn20" and classes that specify diagrams, if I take as input a model "xmi" arising from "bpmn2 diagram editor", then I make the transformation "atl" that returns a file "xmi" empty, then check the "console" and there are no errors, it is only classes that are not recognized?
I do not understand, I attach the changes and "Ecore"

"atl" code:


module definitivo3;
create OUT : ctls from IN : bpmn2;

rule start2fork {
from
j : bpmn2!StartEvent
to
u : ctls!Fork
}

rule bounds2fork {
from
c : bpmn2!Bounds
to
a : ctls!Fork
}

bpmn model input:

<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions targetNamespace="http: //www.jboss.org/ drools" xmlns:xsi="http:// www.w3.org/ 2001/XMLSchema-instance" xmlns:bpmn2= "http:// www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi= "http:// www.omg.org/spec/BPMN/20100524/DI" xmlns:dc= "http:// www.omg.org/spec/DD/20100524/DC" xmlns:tns= "http:// www.jboss.org/drools" xsi:schemaLocation= "http:// www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" id="Definitions_1">
<bpmn2:process id="Process_1" tns:version="1" tns:packageName="defaultPackage">
<bpmn2:startEvent id="StartEvent_1"/>
</bpmn2:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_Process_1" bpmnElement="Process_1">
<bpmndi:BPMNShape id="BPMNShape_StartEvent_1" bpmnElement="StartEvent_1">
<dc:Bounds height="36.0" width="36.0" x="192.0" y="132.0"/>
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>

xmi file output:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi= "http: //www.omg.org/XMI"/>



thanks
waiting for you
  • Attachment: BPMNDI.ecore
    (Size: 9.90KB, Downloaded 80 times)
Previous Topic:[BPMN2]Can NOT Import another bpmn2 file
Next Topic:[BPMN2] Improper QName resolve
Goto Forum:
  


Current Time: Thu Sep 18 11:57:23 GMT 2014

Powered by FUDForum. Page generated in 0.15838 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software