企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 组件源码 ``` /** * <b>方法描述:</b> 获取环境变量 <br/> * <b>创建者:</b> admin <br/> * <b>创建时间:</b> 2020-12-18 16:08:23 <br/> * * @param name * 入参|变量名称|{@link java.lang.String} * @param value * 出参|变量值|{@link java.lang.String} * @return 1 成功<br/> */ @Component(label = "获取环境变量", style = "判断型", type = "同步组件", comment = "调用方法:System.getenv", version = "1.0.0", deprecated = false, author = "admin", date = "2020-12-18 04:08:23") @InParams(param = {@Param(name = "name", comment = "变量名称", type = java.lang.String.class)}) @OutParams(param = {@Param(name = "value", comment = "变量值", type = java.lang.String.class)}) @Returns(returns = {@Return(id = "1", desp = "成功")}) @Order(value = 2) public static ResultBase P_getEnv(String name) { return ResultBase.newSuccessResult(System.getenv(name)); } ``` # 交易中组件使用方式 ![](https://img.kancloud.cn/4e/19/4e194c63240fc6426d62a0fd6b012a45_1868x889.png) # 参数说明及示例 ## 入口参数 变量名称:输入想要获取的变量名称,示例: `"os"` ## 出口参数 变量值:根据输入参数返回的变量值,示例: `__INNER__["result"]`