Skip to main content



      Home
Home » Eclipse Projects » Papyrus for Real Time » scope of trigger/message parameters
scope of trigger/message parameters [message #1776580] Fri, 17 November 2017 15:40 Go to next message
Eclipse UserFriend
Hi,

if a transition with a trigger with parameter goes into a choice point,
it appears that the parameter is only available in
- the effect of the transition going into the choice point, and
- the guards of any transition going out of the choice point,
but *not* in the effect of any of the transitions going out of the
choice point.

This seems odd. Also, looking at the generated code, 'msg' is
passed into the transitionaction (corresponding to the transitions
going out of a choice), meaning that only a 'define' is missing, as in,
e.g.,
> #define c ( *(int *)msg->getParam( 0 ) )

A similar problem occurs in local transitions with triggers with
parameters where the parameter is not available even in the effect
of the transition with the trigger that has the parameter (see second
attached model).

Juergen
Re: scope of trigger/message parameters [message #1776583 is a reply to message #1776580] Fri, 17 November 2017 16:16 Go to previous messageGo to next message
Eclipse UserFriend
Sounds like a bug. I've opened Bug 527431 for it.

[Updated on: Fri, 17 November 2017 16:52] by Moderator

Re: scope of trigger/message parameters [message #1776611 is a reply to message #1776583] Sat, 18 November 2017 07:35 Go to previous message
Eclipse UserFriend
Ok, thanks!

On a related note: should the parameter also be available in the entry code of the target state?

I heard that the scope of the parameter should be the entire transition chain.
I did not check if it can be used in the entry code of the target state.
Previous Topic:local transitions using/not using entry points
Next Topic:How to make template member function
Goto Forum:
  


Current Time: Mon Apr 21 08:24:05 EDT 2025

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

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

Back to the top