Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » objectsOfType don`t return correct results
objectsOfType don`t return correct results [message #1028737] Thu, 28 March 2013 17:07 Go to next message
Angel Johnson is currently offline Angel JohnsonFriend
Messages: 2
Registered: March 2013
Junior Member
Hi,

I'm trying to transform an xmi generated by a metamodel BPMN2 for UML.
My xmi is this:

<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions id="_jHcJkJbYEeK-lqhUdtAOXA">
<bpmn2:process id="_qhSsAJbYEeK-lqhUdtAOXA">
<bpmn2:laneSet id="_qhSsAZbYEeK-lqhUdtAOXA">
<bpmn2:lane id="_qhTTEJbYEeK-lqhUdtAOXA"/>
<bpmn2:lane id="_qhTTEZbYEeK-lqhUdtAOXA"/>
</bpmn2:laneSet>
</bpmn2:process>
</bpmn2:definitions>

My qvto is this:

transformation BPMN2UMLTransformation(in bpmn:BPMN, out uml:UML);

mapping Lane::LaneToActor():Actor
{

}

main() {

bpmn.objectsOfType(Lane)-> map LaneToActor();

}

But, bpmn.objectsOfType(Lane) don't return the correct result.

Can anyone help me?

Thanks
Re: objectsOfType don`t return correct results [message #1032639 is a reply to message #1028737] Wed, 03 April 2013 08:44 Go to previous message
Sergey Boyko is currently offline Sergey BoykoFriend
Messages: 162
Registered: July 2009
Senior Member
Hi Angel,

What do you mean by "don't return the correct result"? Is it returns empty collection?

What number prints to console when executing the following snippet:
log ( bpmn.objectsOfType(Definitions)->size().toString() );

In case it's "0" then possibly something is wrong with the .xmi

Regards,
Sergey
Previous Topic:[Announce] Eclipse QVT Operational 3.3.0 (Kepler) M6 is now available
Next Topic:subobjects() order of elements
Goto Forum:
  


Current Time: Tue Dec 23 04:26:16 GMT 2014

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

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