Book a Demo

Author Topic: Code Generation Template: the definition of "$parameter1"  (Read 2478 times)

Jsc

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Code Generation Template: the definition of "$parameter1"
« on: December 03, 2019, 09:52:23 pm »
Hello,
I am a novice for code generation and my EA version is EA 13.5. I have a question about the definition of "$parameter1" in code generation template.
I want to create a new template to generate state machine in a new language. Firstly i have tried to understand the existing template in C, C## and C++ language.
In template "State" for C#, I have found the following code:
Code: [Select]
%PI=""%
$GUID = $parameter1
%if $GUID==""%
%endTemplate%

$COMMAND_TYPE = "CommandType"
$COMMAND_VAR = "command"
$TRANSCEND_VAR = "transcend"

$IsFinalState = %EASL_GET("Property", $GUID, "IsFinalState")%
%if $IsFinalState == "true"%
%endTemplate%

I do not understand the definition of this string variable "$parameter1". In this template, I have not found any definition of this variable. But it seems like this variable is automatically assigned by Information like GUID or something else.

thanks


Jsc

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Code Generation Template: the definition of "$parameter1"
« Reply #2 on: December 04, 2019, 11:27:14 pm »
Thanks Eve :)