Files
doc-exports/docs/dataartsstudio/umn/dataartsstudio_01_0497.html
chenxiaoxiong c3942cbc2c DataArts UMN 20241028 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: chenxiaoxiong <chenxiaoxiong@huawei.com>
Co-committed-by: chenxiaoxiong <chenxiaoxiong@huawei.com>
2025-07-09 13:09:06 +00:00

36 lines
2.8 KiB
HTML

<a name="dataartsstudio_01_0497"></a><a name="dataartsstudio_01_0497"></a>
<h1 class="topictitle1">Env Embedded Objects</h1>
<div id="body8662426"><p id="dataartsstudio_01_0497__en-us_topic_0172161190_p6373151120335">An Env embedded object provides a method of obtaining an environment variable value.</p>
<div class="section" id="dataartsstudio_01_0497__en-us_topic_0172161190_section18267348332"><h4 class="sectiontitle">Method</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dataartsstudio_01_0497__en-us_topic_0172161190_table874717402336" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Method description</caption><thead align="left"><tr id="dataartsstudio_01_0497__en-us_topic_0172161190_row167470408331"><th align="left" class="cellrowborder" valign="top" width="29.000000000000004%" id="mcps1.3.2.2.2.4.1.1"><p id="dataartsstudio_01_0497__en-us_topic_0172161190_p1774714014337">Method</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="35%" id="mcps1.3.2.2.2.4.1.2"><p id="dataartsstudio_01_0497__en-us_topic_0172161190_p177471640193311">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="36.00000000000001%" id="mcps1.3.2.2.2.4.1.3"><p id="dataartsstudio_01_0497__p1775559823">Example</p>
</th>
</tr>
</thead>
<tbody><tr id="dataartsstudio_01_0497__en-us_topic_0172161190_row1747740123312"><td class="cellrowborder" valign="top" width="29.000000000000004%" headers="mcps1.3.2.2.2.4.1.1 "><p id="dataartsstudio_01_0497__en-us_topic_0172161190_p127471840153312">String get(String name)</p>
</td>
<td class="cellrowborder" valign="top" width="35%" headers="mcps1.3.2.2.2.4.1.2 "><p id="dataartsstudio_01_0497__en-us_topic_0172161190_p1874724010332">Obtains the value of a specified environment variable.</p>
</td>
<td class="cellrowborder" valign="top" width="36.00000000000001%" headers="mcps1.3.2.2.2.4.1.3 "><p id="dataartsstudio_01_0497__p67991824351">To obtain the value of the environment variable <strong id="dataartsstudio_01_0497__b01501726551">test</strong>, run the following command:</p>
<p id="dataartsstudio_01_0497__p7755179428">#{Env.get("test")}</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="dataartsstudio_01_0497__en-us_topic_0172161190_section1259817279715"><h4 class="sectiontitle">Example</h4><p id="dataartsstudio_01_0497__en-us_topic_0172161190_p780092916715">The EL expression used to obtain the value of environment variable <strong id="dataartsstudio_01_0497__en-us_topic_0172161190_b2014412117131">test</strong> is as follows:</p>
<pre class="screen" id="dataartsstudio_01_0497__en-us_topic_0172161190_screen153304361288">#{Env.get("test")}</pre>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dataartsstudio_01_0493.html">EL Expression Reference</a></div>
</div>
</div>