Send Signal Action reception

Moderator: Moderators

Re: Send Signal Action reception

Postby » Sun Jun 30, 2019 3:03 pm

I've been struggling with SysML Send Signal Actions and Accept Event Actions for a while. This thread and the Executing Activity Diagrams
thread helped.

However, neither of the examples, nor the discussion touched on passing parameters. After making a simple working model, I added parameter passing. I got XYZ isn't an integer errors when trying to extract an integer from a Accept Event Action. The Console window showed the signal name and path as well as the integer that I wanted in square braces [] so I knew that I was close to a working solution.

On a whim I dragged the Signal over the object flow from the Accept Event Action output pin to an input pin on an Opaque action. Cameo offered to drop a readStructuralFeature between the pins. I attached the Accept Event output to the readstruct input and the readstruct output to the Opaque input pin. After which the model passed parameters. To me this does not appear to be an obvious solution.

Why isn't the actual value, not the signal structure presented on the Accept Event Action output pin? I suppose that what I did was place the signal, but not the parameters on the input of the Send Signal? Is it possible to just send a parameter, how? Am I doing this properly is there a more elegant means to pass parameters via these Actions?

Forum Newbie
Forum Newbie
Posts: 11
Posts Rating:0
Joined: Thu May 09, 2019 8:58 pm

Re: Send Signal Action reception

Postby » Wed Jan 20, 2021 9:43 am

You can set the "Is Unmarshall" property of the accept event to true to get the pins of the properties of the signal. See IsUnmarshallTrue.png

In case you want to pass the whole signal and extract the properties within an action, you could use an opaque action combined with AHL to use the properties as you want within the action. See IsUnmarshallFalse.png

Moreover, I found more alternatives to pass information between blocks in the following video:

I hope that helps!
You do not have the required permissions to view the files attached to this post.
Forum Newbie
Forum Newbie
Posts: 1
Posts Rating:0
Joined: Thu Dec 03, 2020 2:57 am


Return to Cameo Simulation Toolkits

Who is online

Users browsing this forum: No registered users and 0 guests