如何通过 ExecuteStreamCommand 参数读取属性值

How to read the attrbibute's value by an ExecuteStreamCommand arguments

我有这个 EvaluateJsonPath :

它生成如下内容:

{"results":[{"term":"value1"},{"term":"value2"},{"term":"value3"}]}

此流文件随后由 ExecuteStreamCommand 接收:

我想在我的流程中将此流文件作为参数传递,我已经尝试了 ${terms} 和 {$terms},如上所示,但它不起作用..

谢谢!

雷米斯,

您可以使用 "ExtractText" 处理器将整个流文件作为参数传递。

EvaluateJsonPath-->ExtractText-->ExecuteStreamCommand

在该提取文本中,您必须添加新的 属性,如下所示。

JsonContent:(.*)

在具有整个流文件的 JsonContent 中,其中来自 evaluateJsonPath 处理器。

获取后,您可以在 ExecuteStreamCommand 中使用 ${JsonContent}