Which condition syntax is correct for the Run if connection?

You have a Job that uses a tFileInputDelimited component to extract data from an input file. You built a spate subjob, called W, to handle the condition when the input file is empty.

Which condition syntax is correct for the Run if connection?
A . ((Integer)globalMap.get(‘’tFieldInputDelimited_1NB_LINES’’))=0
B . ((Integer)globalMap.get(‘’tFieldInputDelimited_1NB_LINES’’))–0
C . ((Integer)globalMap.get(‘’tFieldInputDelimited_1NB_LINES’’))-0
D . ((Integer)globalMap.get(‘’tFieldInputDelimited_1NB_LINES’’))===0

Answer: C

Explanation:

To reference the value of a context variable you defined, you can use the syntax context.variable_name, where variable_name is the name of the context variable. For example, if you have a context variable named path, you can reference its value by using context.path. You do not need to specify the context name (such as test or prod) or use parentheses or brackets around the variable name.

Reference: Talend Data Integration ― Software to Connect, Access, and Transform Data | Talend, [Contexts – 7.3]

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments