Activity and CallOperationAction question [message #1614828] |
Fri, 13 February 2015 14:26 |
Joost Kraaijeveld Messages: 273 Registered: July 2009 |
Senior Member |
|
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
If I add an Activity Diagram to a class an Activity is created. If I
populate the Activity (through the Diagram) with a CallOperationAction
and I validate the model, an error is reported: the target of the
CallOperationAction must be set.
The possible values I can set are "ActionInputPin", "InputPin" and
"ValuePin". But I believe that a pin requires a real object. I have
managed tot "click this together" but requires such a pin with named
variable.
What I (conceptually) want, is to specify that the target of the
CallOperationAction is the "this" instance/object of the class. Is
that possible? If so, could one point to how? (And more probable) If
not, why not?
TIA
Joost
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iEYEARECAAYFAlTeCZkACgkQ0VJKUkHcX79ivACfajYe3wZfc1xyxqhJHePmYQDQ
i3IAn1HBOBTmwdD95o6msrl6LnaVHmPD
=Azuf
-----END PGP SIGNATURE-----
Cheers,
Joost
|
|
|
|
Re: Activity and CallOperationAction question [message #1646071 is a reply to message #1644583] |
Mon, 02 March 2015 21:04 |
Joost Kraaijeveld Messages: 273 Registered: July 2009 |
Senior Member |
|
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Abhijit,
Thanks for the answer.
On 02-03-15 05:44, Abhijit Deshpande wrote:
> Hi Joost,
>
> You can use "ReadSelfAction" to get a handle to "this" object.
>
> 1. Create "ReadSelfAction" 2. Create "OutputPin" for
> "ReadSelfAction" 3. Connect this "OutputPin" to "InputPin" of your
> "CallOperationAction" using "ObjectFlow"
OK, but that would add an explicit "argument" to the Action. Is an
action which is attached to an Operation not called in the context of
the instance of object of the type? Something like in C++, where the
this-pointer is implicitly passed to the callee?
TIA
Joost
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iEYEARECAAYFAlT00EkACgkQ0VJKUkHcX79RXACfcvZC3hWXbF4KotfEnCX8x/Df
DjkAn1Dtlivw2gi1Qz7oreFhD3uLaPh5
=5IMS
-----END PGP SIGNATURE-----
Cheers,
Joost
|
|
|
Powered by
FUDForum. Page generated in 0.03592 seconds