Talend 在另一个 tRest 中使用 tRest 返回值

Talend use tRest returned value in another tRest

所以我有一个 tRest 组件调用,它使用 api 来获取报告的唯一 ID 这第一个休息电话表示如下

我需要使用在另一个 restful 调用中返回的唯一 ID 来取回 json 数据集

您可以看到我提供了一个名为 id:135329 的静态 http 变量...我如何引用第一个 rest 调用返回的内容?

您可以将 tExtractJsonFields 组件的输出输出到 tJavaRow,并将返回的 ID 存储到 globaMap.put("response_id",input_row.id); 在您的下一个 tRest 调用中,您可以通过调用 globalMap.get("response_id")

来获取此值
tExtractJsonFields----->tJavaRow (globaMap.put("response_id",input_row.id);)
|
|
|
V
tRest (globalMap.get("response_id"));