Skip to main content



      Home
Home » Modeling » Papyrus » Activity and CallOperationAction question
Activity and CallOperationAction question [message #1614828] Fri, 13 February 2015 09:26 Go to next message
Eclipse UserFriend
-----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-----
Re: Activity and CallOperationAction question [message #1644583 is a reply to message #1614828] Sun, 01 March 2015 23:44 Go to previous messageGo to next message
Eclipse UserFriend
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 16:04 Go to previous message
Eclipse UserFriend
-----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-----
Previous Topic: SysML activity diagram output pins.
Next Topic:Hide lements in a TreeSelectorDialog
Goto Forum:
  


Current Time: Wed Jul 16 05:35:41 EDT 2025

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

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

Back to the top