You answered yourself. The component tOracleInputaccepts the request as a parameter. This is a very boring java line, nothing more, nothing less. This means that if you want to use the globalMap element inside the request, you just need to concatenate the java String. Something like that:
"SELECT * from TABLE_X where FIELD_X='" + (String)globalMap.get("foo") + "'"
but this one will not work (look carefully at the quotes):
"SELECT * from TABLE_X where FIELD_X='(String)globalMap.get("foo")'"
Keep in mind that if you write a query using string concatenation and external vars, the query editor is likely going to mess up all the quotes by creating a broken query.
"*" , tOracleInput. Talend , . , TABLE_X, ETL .
:
- *
- "Guess Schema", .
- "Guess Query", SELECT
- (.. WHERE...)