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

时间:2016-10-05 14:13:54

标签: api etl talend

所以我有一个tRest组件调用,它使用api来获取报告的唯一ID 第一次休息呼叫表示如下 enter image description here

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

enter image description here

你可以看到我提供了一个名为id的静态http变量:135329 ...如何引用第一次休息呼叫返回的内容?

1 个答案:

答案 0 :(得分:1)

您可以将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"));
相关问题