Book a Demo

Author Topic: Code generation of triggers in state machines  (Read 2910 times)

deefer

  • EA User
  • **
  • Posts: 98
  • Karma: +0/-0
    • View Profile
Code generation of triggers in state machines
« on: April 09, 2010, 07:10:07 pm »
Hi
I'm triying to figure out how code generation for triggers in state machine transitions is performed.
In the code template for triggers I get the following:

%PI=""%
$GUID = $parameter1
%if $GUID==""%
%endTemplate%

$sName      = %EASL_GET("Property", $GUID, "Name")%
$Event       = %EASL_GET("Property", $GUID, "Event")%

$EventKind = %EASL_GET("Property", $Event, "EventKind")%

%if $EventKind=="ekCall"%
$sExpression =  %EASL_GET("Property", $Event, "Operation")%
%elseIf $EventKind=="ekTime"%
$sExpression =  %EASL_GET("Property", $Event, "When")%
%elseIf $EventKind=="ekSignal"%
$sExpression =  %EASL_GET("Property", $Event, "Signal")%
%elseIf $EventKind=="ekChange"%
$sExpression =  %EASL_GET("Property", $Event, "ChangeExpression")%
%endIf%

%if $sName != "" and $sExpression != ""%
($sName == $sExpression)
%endIf%

My question is: where can I define the operation of the event (call event)?
The same for the time, change and signal events.. where can these properties be set in the model?
Many thanx
Davide