企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 组件源码 ``` /** * @category 字符串长度 * @param instr * 入参|输入字符串|{@link java.lang.String} * @param length * 出参|长度(字符数)|int * @return 1 成功<br/> */ @InParams(param = { @Param(name = "instr", comment = "输入字符串", type = java.lang.String.class) }) @OutParams(param = { @Param(name = "length", comment = "长度(字符数)", type = int.class) }) @Returns(returns = { @Return(id = "1", desp = "成功") }) @Component(label = "统计字符数", style = "处理型", type = "同步组件", comment = "字符串长度(字符数)", version = "1.0.0", deprecated = false, author = "test", date = "2018-01-22 04:31:09") public static ResultBase P_charLength(String instr) { return ResultBase.newSuccessResult(instr == null ? 0 : instr.length()); } ``` # 交易中组件使用方式 ![](https://img.kancloud.cn/83/86/8386affe3697735b374f6ba986c372c5_1871x892.png) # 参数说明及示例 ## 入口参数 输入字符串:输入一串字符串,示例: `"asdasfgfhgfh"` ## 出口参数 长度(字符数):返回字符串长度,示例: `__INNER__["result"]`