Skip to main content

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

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"/>

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?

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: 171
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

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

Current Time: Thu Aug 18 12:03:53 GMT 2022

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

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

Back to the top