Skip to main content



      Home
Home » Modeling » QVT-OML » objectsOfType don`t return correct results
objectsOfType don`t return correct results [message #1028737] Thu, 28 March 2013 13:07 Go to next message
Eclipse UserFriend
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 04:44 Go to previous message
Eclipse UserFriend
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 Jul 15 20:48:24 EDT 2025

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

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

Back to the top