Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-Relations » objectsOfType don`t return correct results
objectsOfType don`t return correct results [message #1027886] Wed, 27 March 2013 10:50 Go to next message
Angel Johnson is currently offline Angel Johnson
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 #1028708 is a reply to message #1027886] Thu, 28 March 2013 12:33 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4012
Registered: July 2009
Senior Member
Hi

You should ask QVTo questions on the QVTo newsgroup.

QVTo provides a debugger that enables you to single step and so solve
such 'impossible' problems.

Regards

Ed Willink


On 28/03/2013 16:05, Angel Johnson wrote:
> 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
Previous Topic:[help]QVTd as a parser in a standalone application
Next Topic:[Announce] Eclipse QVTd 0.10.0 (Kepler) RC1 is now available
Goto Forum:
  


Current Time: Wed Jul 30 11:10:12 EDT 2014

Powered by FUDForum. Page generated in 0.01795 seconds