SendAction-Problem [message #472833] |
Mon, 30 April 2007 05:59  |
Eclipse User |
|
|
|
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 #472858 is a reply to message #472856] |
Thu, 03 May 2007 12:03  |
Eclipse User |
|
|
|
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 #614265 is a reply to message #472833] |
Tue, 01 May 2007 15:04  |
Eclipse User |
|
|
|
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 09:26  |
Eclipse User |
|
|
|
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 12:03  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.06294 seconds