Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTO] adding new message to sequence diagrams
[QVTO] adding new message to sequence diagrams [message #107405] Mon, 29 June 2009 21:31 Go to next message
Eclipse UserFriend
Originally posted by: mary***.****.com

Hello,
I am trying to add a synchCall message to an existing interaction diagram
through qvto mappings. However, It seems that I can't get it to work. I
don't know why?

here is part of the code will really appreciate any kind of help:
=====================================
main{
model.objects()[Interaction]->AddMessage();
...
}

mapping inout Interaction::AddMessage()
{
init{
self.message += object Message {name:='newMessage';
messageSort:=MessageSort::synchCall; interaction:=self; sendEvent:=??;
receiveEvent:=??};};
}
}
============================================
the two parameters sendEvent and receiveEvent are of type MessageKind I
dont know what values they should take..and I am not sure if it is
important to define them or not..Also I can't find the parameter that
specify the two lifelines (like source & destination of the message)in
which the new message should be add ..

Any help plz?
Re: [QVTO] adding new message to sequence diagrams [message #107488 is a reply to message #107405] Tue, 30 June 2009 10:18 Go to previous message
Radomil Dvorak is currently offline Radomil DvorakFriend
Messages: 249
Registered: July 2009
Senior Member
Hi mary,

It seems that your question is rather UML specific,
better to ask at 'eclipse.modeling.mdt.uml2' newsgroup.

As for QVTO, I recommend to use 'map' keyword in mapping calls according
to OMG spec.

model.objects()[Interaction]->map AddMessage();

It still works the same as we recognize the reffered operation is a
mapping,
but better to be correct. QVTO used to report a warning,
which is apparently missing now.

Regards,
/Radek



On Mon, 29 Jun 2009 23:31:30 +0200, mary <mary***@****.com> wrote:

> Hello,
> I am trying to add a synchCall message to an existing interaction
> diagram through qvto mappings. However, It seems that I can't get it to
> work. I don't know why? here is part of the code will really appreciate
> any kind of help:
> =====================================
> main{
> model.objects()[Interaction]->AddMessage();
> ..
> }
>
> mapping inout Interaction::AddMessage()
> {
> init{
> self.message += object Message {name:='newMessage';
> messageSort:=MessageSort::synchCall; interaction:=self; sendEvent:=??;
> receiveEvent:=??};};
> }
> }
> ============================================
> the two parameters sendEvent and receiveEvent are of type MessageKind I
> dont know what values they should take..and I am not sure if it is
> important to define them or not..Also I can't find the parameter that
> specify the two lifelines (like source & destination of the message)in
> which the new message should be add ..
>
> Any help plz?
>
>
>
>
Previous Topic:wsdl to uml
Next Topic:ATL to ECore
Goto Forum:
  


Current Time: Sun Jan 26 13:19:00 GMT 2025

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

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

Back to the top