Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] BPMN to UML Activity Diagram
[ATL] BPMN to UML Activity Diagram [message #529436] Sun, 25 April 2010 12:55
Mohamed Shalaby is currently offline Mohamed ShalabyFriend
Messages: 8
Registered: April 2010
Junior Member
Hello,

I'm trying to transform BPMN to UML AD. the below code shows the rule to transform BPMN Loop Task to UML AD loop node:

rule LoopTask2LoopNode{
	from 
		loopTask : BPMN!Activity (loopTask.activityType = #Task and loopTask.looping=true and loopTask.oclIsTypeOf(BPMN!Activity))
	to
	loopAction: UMLAD!OpaqueAction(
			activity <- thisModule.parentActivity ,
			name <- loopTask.name,
			inStructuredNode <- loopNode
		),
	loopNode: UMLAD!LoopNode(
		name <- loopTask.name + ' Container',
		activity <- thisModule.parentActivity
	)
}


this code runs and generate the below XMI representation for UML AD:
 
<node xmi:type="uml:LoopNode" xmi:id="_RQAGTVBmEd-g1ckxeVXZeg" name="8 Container" isTestedFirst="true">
      <node xmi:type="uml:OpaqueAction" xmi:id="_RQAGTFBmEd-g1ckxeVXZeg" name="8" outgoing="_RQAGSFBmEd-g1ckxeVXZeg" incoming="_RQAGR1BmEd-g1ckxeVXZeg"/>
    </node>


but my UML2 tools can't generate the loop node from this XML.
I found that when I create the loop node manually, its XMI representation should be represented using the <group > tag rather than <node > tag, so the above XMI should be
 
<group xmi:type="uml:LoopNode" xmi:id="_RQAGTVBmEd-g1ckxeVXZeg" name="8 Container" isTestedFirst="true">
      <node xmi:type="uml:OpaqueAction" xmi:id="_RQAGTFBmEd-g1ckxeVXZeg" name="8" outgoing="_RQAGSFBmEd-g1ckxeVXZeg" incoming="_RQAGR1BmEd-g1ckxeVXZeg"/>
    </group>

I dont know if this is a metamode problem or if there is a way to force the generated XMI to use the <group > tag.

Thank you,
Mohamed Shalaby
Previous Topic:Should I be familiar with OCL to be able to learn ATL
Next Topic:[ATL] instanceClassName
Goto Forum:
  


Current Time: Thu Sep 26 06:57:51 GMT 2024

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

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

Back to the top