Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » ATL transformation rules not matching nested BPMN2 elements(ATL transformation rules not matching nested BPMN2 elements)
icon11.gif  ATL transformation rules not matching nested BPMN2 elements [message #1732184] Fri, 13 May 2016 10:19 Go to next message
behnaz changizi is currently offline behnaz changiziFriend
Messages: 11
Registered: January 2014
Junior Member
I am writing an ATL translation from BPMN2 to another model. The problem is that the code does not detect any nested element.

I have posted the atl code and my input here at: https://github.com/behnaaz/BPMN2ATL.git

You can see from the output that the only executed rule is def2mod which has created a Reo module element in the output.

If I remove the first level element in the input bpmn file then the rule mapProcess is kicked in.

Also in the logs the command BPMN20!Process.allInstances() which should give a list of all the Processes only works in the mapProcess rule.

I think there is some issue with parsing my bpmn model. Help much appreciated!

=== ATL CODE ====

-- @path BPMN20=/atttl/BPMN2/BPMN20.ecore
create OUT: reo from IN: BPMN20;

rule def2mod {
from
b: BPMN20!Definitions
to
m: reo!Module
do {
b.debug('definition to module > ' + BPMN20!Process.allInstances());
}
}

rule mapProcess {
from
proc: BPMN20!Process
to
conn: reo!Connector
do {
proc.debug('process to connector ' + proc.name + proc.flowElements);
proc.debug( BPMN20!Process.allInstances());
}
}
=== BPMN input ===

<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:Definitions xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL-XMI">
<bpmn2:Process id="bpmnid-80c796ae-c11d-42d8-92ae-1d88bab84536" name="Process" isClosed="false" processType="None" xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL-XMI">
<bpmn2:serviceTask id="bpmnid-11047880-09d8-4147-8382-523145eeb8b6" name="Task 1"/>
<bpmn2:serviceTask id="bpmnid-2f925dd9-4ec8-45b7-936c-0c14597319a9" name="Task 2"/>
<bpmn2:serviceTask id="bpmnid-21a0fc44-3c02-4a00-9b6e-aa6c058992d3" name="Task 3"/>
<bpmn2:startEvent id="bpmnid-196c656e-baa2-4306-809b-56ba006057b9" name="Start Event"/>
<bpmn2:endEvent id="bpmnid-5cfcf354-ba3f-4b13-a5bf-bdf27ca70acc" name="End Event"/>
<bpmn2:sequenceFlow id="bpmnid-be0a37d4-8054-4367-82ae-b43430d5fc6f" name="Sequence Flow0" sourceRef="bpmnid-11047880-09d8-4147-8382-523145eeb8b6" targetRef="bpmnid-2f925dd9-4ec8-45b7-936c-0c14597319a9"/>
<bpmn2:sequenceFlow id="bpmnid-01d687a3-66ee-40d7-9e17-97aa5724eef7" name="Sequence Flow" sourceRef="bpmnid-196c656e-baa2-4306-809b-56ba006057b9" targetRef="bpmnid-11047880-09d8-4147-8382-523145eeb8b6"/>
<bpmn2:sequenceFlow id="bpmnid-b687d3ec-b6d7-480a-a1e1-57fbe220e579" name="Sequence Flow2" sourceRef="bpmnid-21a0fc44-3c02-4a00-9b6e-aa6c058992d3" targetRef="bpmnid-5cfcf354-ba3f-4b13-a5bf-bdf27ca70acc"/>
<bpmn2:sequenceFlow id="bpmnid-4596a8fb-f1dc-46b3-bc28-9a2e11c26f96" name="Sequence Flow1" sourceRef="bpmnid-2f925dd9-4ec8-45b7-936c-0c14597319a9" targetRef="bpmnid-21a0fc44-3c02-4a00-9b6e-aa6c058992d3"/>
</bpmn2:Process>
</bpmn2:Definitions>
  • Attachment: testModels.atl
    (Size: 0.69KB, Downloaded 190 times)
  • Attachment: simple.bpmn
    (Size: 1.68KB, Downloaded 219 times)
  • Attachment: BPMN20.ecore
    (Size: 70.37KB, Downloaded 209 times)
Re: ATL transformation rules not matching nested BPMN2 elements [message #1732185 is a reply to message #1732184] Fri, 13 May 2016 10:22 Go to previous messageGo to next message
behnaz changizi is currently offline behnaz changiziFriend
Messages: 11
Registered: January 2014
Junior Member
I have also posted it here http://stackoverflow.com/questions/37196593/atl-transformation-rules-not-matching-nested-bpmn2-elements
Re: ATL transformation rules not matching nested BPMN2 elements [message #1732188 is a reply to message #1732184] Fri, 13 May 2016 11:05 Go to previous messageGo to next message
Salvador Martínez is currently offline Salvador MartínezFriend
Messages: 3
Registered: November 2010
Junior Member
This does not seem to be an ATL problem. After checking you project, there is some problem with your BPMN metamodel.

1) Your sample BMPN model can not be opened with the sample reflective editor.

2) When creating a dynamic instance from Definitions, the editor does not work either.

The transformation will probably work fine when the metamodel is fixed.

Re: ATL transformation rules not matching nested BPMN2 elements [message #1732203 is a reply to message #1732188] Fri, 13 May 2016 12:00 Go to previous messageGo to next message
behnaz changizi is currently offline behnaz changiziFriend
Messages: 11
Registered: January 2014
Junior Member
Big thanks Salvador! Now I know where to focus.
Re: ATL transformation rules not matching nested BPMN2 elements [message #1750301 is a reply to message #1732203] Mon, 19 December 2016 17:27 Go to previous message
Sony Mising name is currently offline Sony Mising nameFriend
Messages: 1
Registered: December 2016
Junior Member
hello behnaz, I have the same problem of your. I use the BPMN20 and When I tested my ATL rules, I got an empty output file.
Any help Please?
thnx in advance.
Previous Topic:ATL does not like EList in operation parameters
Next Topic:Cross-references in EMFTVM VM standalone
Goto Forum:
  


Current Time: Thu Apr 25 11:51:24 GMT 2024

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

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

Back to the top