Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » SendAction-Problem
SendAction-Problem [message #472833] Mon, 30 April 2007 09:59 Go to next message
Jan Reimann is currently offline Jan ReimannFriend
Messages: 90
Registered: July 2009
Member
Hello NG,
My question is simple. How do I scpecifiy a SendAction correctly. The
point is that I want to add a SendAction to a transition in my model.
Than it looks like this:

<transition xmi:id="UID_BCC8DD1D-C5FE-44b4-8E02-7BE7160096C9"
name="cancel" target="UID_E1D987D8-7DE1-4a2c-AADE-4331CD23F5E2"
source="UID_96E5D53C-49CF-4a71-AF1D-A5A54A94219C">
<effect xmi:type="uml:Activity"
xmi:id="_tNryMPcAEdurAqV3X9yfzw" name="crossingGate">
<node xmi:type="uml:SendSignalAction"
xmi:id="_wnV1oPcAEdurAqV3X9yfzw"/>
</effect>
</transition>


If I validate the model via right-click-->validate, there are two
exceptions. A 'signal' and a 'target' of my sendaction is missed. Well I
know that it is right, if it is missed but I couldn't find the correct
element to add as child of my SendAction. What can I do or which is the
adequate child to add?

Greets
J.R.
Re: SendAction-Problem [message #472843 is a reply to message #472833] Tue, 01 May 2007 17:54 Go to previous messageGo to next message
Jan Reimann is currently offline Jan ReimannFriend
Messages: 90
Registered: July 2009
Member
No ideas?

greets
Jan R.
Re: SendAction-Problem [message #472845 is a reply to message #472833] Tue, 01 May 2007 19:04 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Jan,

( We're not ignoring you ... really :) )

The Signal and Target of a SendSignalAction are required. The target is an
InputPin.

The input pin (target) could be owned directly by the SendSignalAction.
Call SendSignalAction.createTarget().
The Signal could be owned by the Activity that owns the SendSignalAction.
Call SendSignalAction.setSignal().

- James.



"Jan Reimann" <eclipse@janreimone.de> wrote in message
news:f14emp$3o4$1@build.eclipse.org...
> Hello NG,
> My question is simple. How do I scpecifiy a SendAction correctly. The
> point is that I want to add a SendAction to a transition in my model.
> Than it looks like this:
>
> <transition xmi:id="UID_BCC8DD1D-C5FE-44b4-8E02-7BE7160096C9"
> name="cancel" target="UID_E1D987D8-7DE1-4a2c-AADE-4331CD23F5E2"
> source="UID_96E5D53C-49CF-4a71-AF1D-A5A54A94219C">
> <effect xmi:type="uml:Activity"
> xmi:id="_tNryMPcAEdurAqV3X9yfzw" name="crossingGate">
> <node xmi:type="uml:SendSignalAction"
> xmi:id="_wnV1oPcAEdurAqV3X9yfzw"/>
> </effect>
> </transition>
>
>
> If I validate the model via right-click-->validate, there are two
> exceptions. A 'signal' and a 'target' of my sendaction is missed. Well I
> know that it is right, if it is missed but I couldn't find the correct
> element to add as child of my SendAction. What can I do or which is the
> adequate child to add?
>
> Greets
> J.R.
Re: SendAction-Problem [message #472856 is a reply to message #472845] Thu, 03 May 2007 13:26 Go to previous messageGo to next message
Jan Reimann is currently offline Jan ReimannFriend
Messages: 90
Registered: July 2009
Member
Thanks to you James, I had a little bit success. I added a Signal to the
Activity and assigned it to the SendSignalAction. Then I added an
InputPin and Eclipse said that I have to specify an UpperBound to it.
Apart from that I don't know for which reason it is needed, the
Validation succeeds now. Now my problems have moved. At first the thing
is that in my UML-modelling Tool I assign a method of a class to the
Signal of a transition. As well the target(input pin) is a method. But
in the UML Model Editor I can't assign a method to both. What can I do?

greets
Jan R.
Re: SendAction-Problem [message #472858 is a reply to message #472856] Thu, 03 May 2007 16:03 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Jan

.... not sure what you mean by ... "As well the target(input pin) is a
method"....

An InputPin is not a method.

What is the real problem you are trying to model? Have you looked at the
UML spec at www.omg.org for a description of InputPins and
SendSignalAction? What is the property you are trying to set.

- James.



"Jan Reimann" <eclipse@janreimone.de> wrote in message
news:f1cnt8$4gt$1@build.eclipse.org...
> Thanks to you James, I had a little bit success. I added a Signal to the
> Activity and assigned it to the SendSignalAction. Then I added an
> InputPin and Eclipse said that I have to specify an UpperBound to it.
> Apart from that I don't know for which reason it is needed, the
> Validation succeeds now. Now my problems have moved. At first the thing
> is that in my UML-modelling Tool I assign a method of a class to the
> Signal of a transition. As well the target(input pin) is a method. But
> in the UML Model Editor I can't assign a method to both. What can I do?
>
> greets
> Jan R.
Re: SendAction-Problem [message #614258 is a reply to message #472833] Tue, 01 May 2007 17:54 Go to previous message
Jan Reimann is currently offline Jan ReimannFriend
Messages: 90
Registered: July 2009
Member
No ideas?

greets
Jan R.
Re: SendAction-Problem [message #614265 is a reply to message #472833] Tue, 01 May 2007 19:04 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Jan,

( We're not ignoring you ... really :) )

The Signal and Target of a SendSignalAction are required. The target is an
InputPin.

The input pin (target) could be owned directly by the SendSignalAction.
Call SendSignalAction.createTarget().
The Signal could be owned by the Activity that owns the SendSignalAction.
Call SendSignalAction.setSignal().

- James.



"Jan Reimann" <eclipse@janreimone.de> wrote in message
news:f14emp$3o4$1@build.eclipse.org...
> Hello NG,
> My question is simple. How do I scpecifiy a SendAction correctly. The
> point is that I want to add a SendAction to a transition in my model.
> Than it looks like this:
>
> <transition xmi:id="UID_BCC8DD1D-C5FE-44b4-8E02-7BE7160096C9"
> name="cancel" target="UID_E1D987D8-7DE1-4a2c-AADE-4331CD23F5E2"
> source="UID_96E5D53C-49CF-4a71-AF1D-A5A54A94219C">
> <effect xmi:type="uml:Activity"
> xmi:id="_tNryMPcAEdurAqV3X9yfzw" name="crossingGate">
> <node xmi:type="uml:SendSignalAction"
> xmi:id="_wnV1oPcAEdurAqV3X9yfzw"/>
> </effect>
> </transition>
>
>
> If I validate the model via right-click-->validate, there are two
> exceptions. A 'signal' and a 'target' of my sendaction is missed. Well I
> know that it is right, if it is missed but I couldn't find the correct
> element to add as child of my SendAction. What can I do or which is the
> adequate child to add?
>
> Greets
> J.R.
Re: SendAction-Problem [message #614299 is a reply to message #472845] Thu, 03 May 2007 13:26 Go to previous message
Jan Reimann is currently offline Jan ReimannFriend
Messages: 90
Registered: July 2009
Member
Thanks to you James, I had a little bit success. I added a Signal to the
Activity and assigned it to the SendSignalAction. Then I added an
InputPin and Eclipse said that I have to specify an UpperBound to it.
Apart from that I don't know for which reason it is needed, the
Validation succeeds now. Now my problems have moved. At first the thing
is that in my UML-modelling Tool I assign a method of a class to the
Signal of a transition. As well the target(input pin) is a method. But
in the UML Model Editor I can't assign a method to both. What can I do?

greets
Jan R.
Re: SendAction-Problem [message #614482 is a reply to message #472856] Thu, 03 May 2007 16:03 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Jan

.... not sure what you mean by ... "As well the target(input pin) is a
method"....

An InputPin is not a method.

What is the real problem you are trying to model? Have you looked at the
UML spec at www.omg.org for a description of InputPins and
SendSignalAction? What is the property you are trying to set.

- James.



"Jan Reimann" <eclipse@janreimone.de> wrote in message
news:f1cnt8$4gt$1@build.eclipse.org...
> Thanks to you James, I had a little bit success. I added a Signal to the
> Activity and assigned it to the SendSignalAction. Then I added an
> InputPin and Eclipse said that I have to specify an UpperBound to it.
> Apart from that I don't know for which reason it is needed, the
> Validation succeeds now. Now my problems have moved. At first the thing
> is that in my UML-modelling Tool I assign a method of a class to the
> Signal of a transition. As well the target(input pin) is a method. But
> in the UML Model Editor I can't assign a method to both. What can I do?
>
> greets
> Jan R.
Previous Topic:UML2toEcore lacks DataTypes
Next Topic:UML2toEcore lacks DataTypes
Goto Forum:
  


Current Time: Thu Apr 25 10:59:29 GMT 2024

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

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

Back to the top