如何使用Talend OS将参数从tMongoDBInput传递到tRestClient以获取大数据
我正在使用Talend OS处理大数据,并从HP ALM获取数据。它工作得很好。 这里是我的工作流程如何使用Talend OS将参数从tMongoDBInput传递到tRestClient以获取大数据,mongodb,talend,rest-client,Mongodb,Talend,Rest Client,我正在使用Talend OS处理大数据,并从HP ALM获取数据。它工作得很好。 这里是我的工作流程 tFileInputProperties-->tContextLoad-->tMongoDBConnection-->tLibraryLoad-->tJava-->tRestClient-->tExtractXMLField-->tXMLMap-->tMongoDBOutput 现在,我尝试从mongoDB动态获取输入,如ALM URL、凭证、R
tFileInputProperties-->tContextLoad-->tMongoDBConnection-->tLibraryLoad-->tJava-->tRestClient-->tExtractXMLField-->tXMLMap-->tMongoDBOutput
现在,我尝试从mongoDB动态获取输入,如ALM URL、凭证、Req或缺陷或测试列详细信息,而不是属性文件组件
是否可以通过talend将值从MongoBinput传递到tRestClient
实际结果:
"string" : "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>
<Entities TotalResults=\"518\">
<Entity Type=\"defect\">
<ChildrenCount>
<Value>0</Value>
</ChildrenCount>
<Fields>
<Field Name=\"detection-version\">
<Value></Value>
</Field>
<Field Name=\"subject\"/>
<Field Name=\"description\">
<Value><html><body>\ndescription9483\n</body></html></Value>
</Field>
<Field Name=\"priority\">
<Value></Value></Field>
<Field Name=\"project\">
<Value></Value></Field>
<Field Name=\"last-modified\"><Value>2018-08-31 13:05:59</Value></Field>
</Entity><singleElementCollection>false</singleElementCollection>
</Entities>"
"_id" : ObjectId("596e69f9a2e6f23e28ba0d58"),
"summary" : "test duregesh",
"severity" : "2-Medium",
"priority" : "",
"status" : "",
"creation-time" : ISODate("2018-01-08T00:00:00.000+0000"),
"closing-date" : null,
"description" : "",
"owner" : "",
"id" : NumberInt(339)
}
如果你的工作中只有tMongoDBOutput,为什么还要问tMongoDBInput?或者我误解了你的问题(在这种情况下,请你更明确一点),我想你误解了我的问题。那是我目前的工作。现在,我尝试从tMongoDBInput而不是tFileInputProperties传递输入值。那么问题出在哪里?您想使用tMongoDBInput从MongoDB设置上下文变量值吗?我已经找到了这个问题的解决方案。现在,我试图从ALM中提取所有缺陷列数据,而不在tExtractXMLField Xpath映射中指定列名。有可能这样做吗?