Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Activity and CallOperationAction question
Activity and CallOperationAction question [message #1614828] Fri, 13 February 2015 14:26 Go to next message
Joost Kraaijeveld is currently offline Joost KraaijeveldFriend
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 #1644583 is a reply to message #1614828] Mon, 02 March 2015 04:44 Go to previous messageGo to next message
Abhijit Deshpande is currently offline Abhijit DeshpandeFriend
Messages: 11
Registered: December 2014
Junior Member
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"

Thanks,
Abhijit
Re: Activity and CallOperationAction question [message #1646071 is a reply to message #1644583] Mon, 02 March 2015 21:04 Go to previous message
Joost Kraaijeveld is currently offline Joost KraaijeveldFriend
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
Previous Topic: SysML activity diagram output pins.
Next Topic:Hide lements in a TreeSelectorDialog
Goto Forum:
  


Current Time: Thu Apr 18 18:22:16 GMT 2024

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

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

Back to the top