127.9. 如何从多个语句脚本获得结果download PDF 从 Camel 2.14 开始提供 因为 scripteengine evale 方法只需运行多个统计数据脚本,则返回 Null。Camel 现在通过使用来自值集的"result"的键查找脚本结果值。如果您有多个语句脚本,则需要确保设置 result 变量的值,因为脚本返回值。 bar = "baz"; # some other statements ... # camel take the result value as the script evaluation result result = body * 2 + 1前一个下一个