javascript 欢乐连接频道Map大小

zsohkypk  于 2023-05-16  发布在  Java
关注(0)|答案(1)|浏览(61)

我需要一个通道Map表里面的字符串长度。我已经找到channelMap.size方法了,但是..

DETAILS:    Can't find method com.mirth.connect.server.userutil.ChannelMap.size(string).
at 7b0f55d4-9758-4764-8486-6b0363f598c5:75 (doTransform)
at 7b0f55d4-9758-4764-8486-6b0363f598c5:101 (doScript)
at 7b0f55d4-9758-4764-8486-6b0363f598c5:103
at com.mirth.connect.server.transformers.JavaScriptFilterTransformer$FilterTransformerTask.doCall(JavaScriptFilterTransformer.java:154)
at com.mirth.connect.server.transformers.JavaScriptFilterTransformer$FilterTransformerTask.doCall(JavaScriptFilterTransformer.java:119)
at com.mirth.connect.server.util.javascript.JavaScriptTask.call(JavaScriptTask.java:113)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
mqkwyuun

mqkwyuun1#

var strLen = channelMap.get('var').length

似乎是最简单的方法。

相关问题