Hi!
I'm working on a transformation from BPEL to BPMN. I want to create a BPMN process tag from the BPEL process tag with this rule :
rule process2process {
from
proc : BPEL!Process
to
definition : BPMN!Definitions (
id <- 'Definitions_1',
name <- 'fakenamespace',
targetNamespace <- proc.targetNamespace,
typeLanguage <- 'link',
rootElements <- process
),
process : BPMN!Process (
id <- 'process1',
name <- proc.name,
processType <- 'Public'
)
}
In the ecore file describing BPMN, rootElements wait a RootElement that inherit BaseElement.
process is type Process that also inherit BaseElement
The rule generate :
<bpmn2:Definitions ...>
<rootElements xsi:type="bpmn2:Process" id="process_1" name="test" processType="Public"/>
</bpmn2:Definitions>
I do not know how to obtain the tags I want to generate with ATL :
<bpmn2:definitions ...>
<bpmn2:process id="process_1" name="test" processType="Public">
</bpmn2:definitions>
Could someone help me to resolve this problem?
Thanks,
Romain