"SET" and "GET" commands are used to
setup and read an
environment variable. Environment must be supported by processor. Have
two form of syntax.
Short
Syntax
%setl<name=[value]>
%get<name>
Full
Syntax
<set>name<=>[value]<endset>
<get>name<endget>
where
name
- name of variable
value
- string value assigned to variable
UML Processor supports the following environment variables
- mapidx - mapping schema
index. MapTool allowes you to keep several different mapping schemas.
Schema #0 is used for mapping on Oracle database and schema #1 is used
to map on ODBC database.
- ...
Example
Main template
>>>Oracle mapping :<set>mapidx<=>0<endset>%\%
<for>y
attributes<where>+M<begin>%a.name%
is mapped to "%.map%"<cr><endfor>
>>>ODBC mapping :<set>mapidx<=>1<endset>%\%
<for>y
attributes<where>+M<begin>%a.name%
is mapped to "%.map%"<cr><endfor>
Generated result
>>>Oracle mapping:
Id is mapped to "ID"
Name is mapped to "TEXT"
Age is mapped to "YEARS"
>>>ODBC mapping:
Id is mapped to "USER_ID"
Name is mapped to "NAME"
Age is mapped to "AGE"