Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I would like to count data inserted into my table. The usual way is to insert tFlowMeter component on the row link to perform this. But as you can see on the screenshot below, I use 'bulk' components to load the data into the table for performance purpose. So there is no row link outgoing from the tOracleBulkExec component to connect to a tFlowMeter component.
However, the tOracleBulkExec component stores these information into some global variables, and I would like to send the values of these variables to the tFlowMeterCatcher.
I tried to connect a tJava to the tOracleBulkExec with the following java code but it seems this does not work (no trace on the console):
talendMeter_METTER.addMessage("DATA_INSERTED", ((Integer)globalMap.get("tOracleBulkExec_1_NB_LINE_INSERTED")), "null", "", "");
Does someone know a workaround or another way to send a message to the tFlowMeterCatcher ?
Thanks in advance for your help.
Bruno
output_row.count = ((Boolean) globalMap.containsKey(input_row.label)) ? ((Integer) globalMap.get(input_row.label)) : input_row.count;
[statistics] connected
2015-12-14 13:21:41|DF5sFZ|DF5sFZ|DF5sFZ|6260|OPC|Opc_03b_LoadInd|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement||begin||
2015-12-14 13:21:41|DF5sFZ|DF5sFZ|DF5sFZ|OPC|Opc_03b_LoadInd|Developpement|1|tWarn|tWarn_2|Started...|10
2015-12-14 13:21:50|DF5sFZ|DF5sFZ|DF5sFZ|6260|OPC|Opc_03b_LoadInd|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement|tFlowMeter_3|FILE_READ|1638||
2015-12-14 13:21:50|DF5sFZ|DF5sFZ|DF5sFZ|6260|OPC|Opc_03b_LoadInd|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement|tFlowMeter_3|FILE_READ|1638||
2015-12-14 13:21:50|DF5sFZ|DF5sFZ|DF5sFZ|6260|OPC|Opc_03b_LoadInd|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement|tOracleBulkExec_1|begin||
SQL*Loader: Release 10.2.0.3.0 - Production on Lun. Dc. 14 13:21:50 2015
Copyright (c) 1982, 2005, Oracle. All rights reserved.
2015-12-14 13:22:35|DF5sFZ|DF5sFZ|DF5sFZ|6260|OPC|Opc_03b_LoadInd|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement|tOracleBulkExec_1|end|success|44980
2015-12-14 13:22:35|DF5sFZ|DF5sFZ|DF5sFZ|6260|OPC|Opc_03b_LoadInd|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement|tFlowMeter_5|DATA_INSERTED|236784||
2015-12-14 13:22:35|DF5sFZ|DF5sFZ|DF5sFZ|6260|OPC|Opc_03b_LoadInd|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement|tFlowMeter_14|DATA_BAD|0||
2015-12-14 13:22:35|DF5sFZ|DF5sFZ|DF5sFZ|6260|OPC|Opc_03b_LoadInd|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement|tFlowMeter_5|DATA_INSERTED|1||
2015-12-14 13:22:35|DF5sFZ|DF5sFZ|DF5sFZ|6260|OPC|Opc_03b_LoadInd|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement|tFlowMeter_14|DATA_BAD|1||
2015-12-14 13:22:35|DF5sFZ|DF5sFZ|DF5sFZ|6260|OPC|Opc_03b_LoadInd|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement||end|success|53935
[statistics] disconnected
[statistics] connected
2015-12-14 10:28:38|QuXGHA|QuXGHA|QuXGHA|6372|OPCO|Opco_03b_LoadIndex|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement||begin||
2015-12-14 10:28:38|QuXGHA|QuXGHA|QuXGHA|OPCO|Opco_03b_LoadIndex|Developpement|1|tWarn|tWarn_2|Started...|10
2015-12-14 10:28:46|QuXGHA|QuXGHA|QuXGHA|6372|OPCO|Opco_03b_LoadIndex|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement|tFlowMeter_3|INDEX_FILE_READ|1638||
2015-12-14 10:28:46|QuXGHA|QuXGHA|QuXGHA|6372|OPCO|Opco_03b_LoadIndex|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement|tOracleBulkExec_1|begin||
SQL*Loader: Release 10.2.0.3.0 - Production on Lun. Dc. 14 10:28:46 2015
Copyright (c) 1982, 2005, Oracle. All rights reserved.
2015-12-14 10:29:30|QuXGHA|QuXGHA|QuXGHA|6372|OPCO|Opco_03b_LoadIndex|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement|tOracleBulkExec_1|end|success|43217
2015-12-14 10:29:30|QuXGHA|QuXGHA|QuXGHA|6372|OPCO|Opco_03b_LoadIndex|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement|tFlowMeter_5|INDEX_DATA_INSERTED|236784||
2015-12-14 10:29:30|QuXGHA|QuXGHA|QuXGHA|6372|OPCO|Opco_03b_LoadIndex|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement|tFlowMeter_5|INDEX_DATA_INSERTED|1||
2015-12-14 10:29:30|QuXGHA|QuXGHA|QuXGHA|6372|OPCO|Opco_03b_LoadIndex|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement||end|success|51955
[statistics] disconnected
output_row.count = ((Boolean) globalMap.containsKey(input_row.label)) ? ((Integer) globalMap.get(input_row.label)) : input_row.count;
[statistics] connected
2015-12-14 13:21:41|DF5sFZ|DF5sFZ|DF5sFZ|6260|OPC|Opc_03b_LoadInd|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement||begin||
2015-12-14 13:21:41|DF5sFZ|DF5sFZ|DF5sFZ|OPC|Opc_03b_LoadInd|Developpement|1|tWarn|tWarn_2|Started...|10
2015-12-14 13:21:50|DF5sFZ|DF5sFZ|DF5sFZ|6260|OPC|Opc_03b_LoadInd|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement|tFlowMeter_3|FILE_READ|1638||
2015-12-14 13:21:50|DF5sFZ|DF5sFZ|DF5sFZ|6260|OPC|Opc_03b_LoadInd|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement|tFlowMeter_3|FILE_READ|1638||
2015-12-14 13:21:50|DF5sFZ|DF5sFZ|DF5sFZ|6260|OPC|Opc_03b_LoadInd|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement|tOracleBulkExec_1|begin||
SQL*Loader: Release 10.2.0.3.0 - Production on Lun. Dc. 14 13:21:50 2015
Copyright (c) 1982, 2005, Oracle. All rights reserved.
2015-12-14 13:22:35|DF5sFZ|DF5sFZ|DF5sFZ|6260|OPC|Opc_03b_LoadInd|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement|tOracleBulkExec_1|end|success|44980
2015-12-14 13:22:35|DF5sFZ|DF5sFZ|DF5sFZ|6260|OPC|Opc_03b_LoadInd|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement|tFlowMeter_5|DATA_INSERTED|236784||
2015-12-14 13:22:35|DF5sFZ|DF5sFZ|DF5sFZ|6260|OPC|Opc_03b_LoadInd|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement|tFlowMeter_14|DATA_BAD|0||
2015-12-14 13:22:35|DF5sFZ|DF5sFZ|DF5sFZ|6260|OPC|Opc_03b_LoadInd|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement|tFlowMeter_5|DATA_INSERTED|1||
2015-12-14 13:22:35|DF5sFZ|DF5sFZ|DF5sFZ|6260|OPC|Opc_03b_LoadInd|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement|tFlowMeter_14|DATA_BAD|1||
2015-12-14 13:22:35|DF5sFZ|DF5sFZ|DF5sFZ|6260|OPC|Opc_03b_LoadInd|_OqJUQJ9dEeWv45XULJuvcg|1.0|Developpement||end|success|53935
[statistics] disconnected
[size=2][font=Verdana, Helvetica, Arial, sans-serif] [tSetGlobalVar] -- row1 --> [tFlowMeter_1] -- row2 --> [tFlowMeter_2][/font][/size]