Page 1 of 1

Executing Call Event Trigger in STM using CST

PostPosted: Fri Sep 29, 2017 6:37 am
by bradley.ayres.ctr@afit.edu
I've been able to simulate execution of signal, time, and change events in a state machine using Cameo Simulation Toolkit but am having trouble with call events. How do you enable a transition that has a call event as the trigger? I've attached my example state machine. Thanks!

State Machine Module.mdzip

Re: Executing Call Event Trigger in STM using CST

PostPosted: Fri Sep 29, 2017 11:43 am
by bradley.ayres.ctr@afit.edu
I see from the CST User's Guide that triggers can only be signal, time, or change events. Call Events are not supported. Is there a plan to add that feature in the future?

Re: Executing Call Event Trigger in STM using CST

PostPosted: Mon Oct 02, 2017 3:58 am
by chanon_s
Dear Customer

Call events have been supported since CST 18.2. Please see this link for the user guide of call events.

In addition to simulate a transition with a call event, you need to call that matching operation, specified in the call event trigger on that transition, for example, via a CallOperationAction in an activity diagram or a CallMessage in a sequence diagram. That operation must not have any method specified. Otherwise, the behavior which is specified on that method's operation will be invoked and call event occurrence will not be generated to the event pool.

Moreover, you can use the diagram context menu to trigger a call event when running simulation. You can do this by right clicking a transition with call event specified > Simulation > Fire Transition, as displayed in the image below:

fire_transition.png


Sincerely

Chanon S.
No Magic Customer Support

Re: Executing Call Event Trigger in STM using CST

PostPosted: Mon Oct 02, 2017 7:04 am
by bradley.ayres.ctr@afit.edu
Thank you so much! I greatly appreciate the help.