企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 组件源码 ``` /** * <b>方法描述:</b> 获取对象类型名称 <br/> * <b>创建者:</b> admin <br/> * <b>创建时间:</b> 2020-12-16 17:06:54 <br/> * * @param inobj * 入参|变量对象|{@link Object} * @param typename * 出参|类型名称(null,String...)|{@link java.lang.String} * @return 1 成功<br/> */ @Component(label = "获取对象类型名称", style = "处理型", type = "同步组件", comment = "取对象类名称,即对象的className", version = "1.0.0", deprecated = false, author = "admin", date = "2020-12-16 05:06:54") @InParams(param = {@Param(name = "inobj", comment = "变量对象", type = Object.class)}) @OutParams(param = {@Param(name = "typename", comment = "类型名称(null,String...)", type = java.lang.String.class)}) @Returns(returns = {@Return(id = "1", desp = "成功")}) @Order(value = 2) public static ResultBase P_GetTypeName(Object inobj) { return ResultBase.newSuccessResult((inobj == null) ? null : inobj.getClass().getSimpleName()); } ``` # 交易中组件使用方式 ![](https://img.kancloud.cn/62/36/6236a458cfd2c7ff42dc397374e6f9be_1867x892.png) # 参数说明及示例 ## 入口参数 变量对象:获取容器中的对象,示例: `__INNER__["user"]` ## 出口参数 类型名称:获取输入参数的类名称,示例: `__INNER__["result"]`