Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
!((String)globalMap.get("tSystem_1_OUTPUT")).equals(null)
||
!(((String)globalMap.get("tSystem_1_ERROROUTPUT")) == null)
||
!(((String)globalMap.get("tSystem_1_ERROR_MESSAGE")) == null)
import java.io.*;
Writer output = null;
File file = new File(context.BatchLogFile);
output = new BufferedWriter(new FileWriter(file, true));
output.write("\n");
output.write("\n");
output.write("********************************************************************************************************");
output.write("\n");
output.write("\n");
output.write("Start Date/Time= " + TalendDate.getCurrentDate());
output.write("\n");
output.write("\n");
if ( !((String)globalMap.get("tSystem_1_OUTPUT")).equals(null) ) {
output.write("------------------------------------Standard Output-------------------------------------");
output.write("\n");
output.write(((String)globalMap.get("tSystem_1_OUTPUT")));
output.write("\n");
}
if ( !(((String)globalMap.get("tSystem_1_ERROROUTPUT")) == null) ) {
output.write("--------------------------------------Error Output--------------------------------------");
output.write("\n");
output.write(((String)globalMap.get("tSystem_1_ERROROUTPUT")));
output.write("\n");
}
if ( !(((String)globalMap.get("tSystem_1_ERROR_MESSAGE")) == null) ) {
output.write("--------------------------------------Error Message-------------------------------------");
output.write("\n");
output.write(((String)globalMap.get("tSystem_1_ERROR_MESSAGE")));
output.write("\n");
}
output.write("\n");
output.write("\n");
output.write("End Date/Time= " + TalendDate.getCurrentDate());
output.write("\n");
output.write("\n");
output.write("********************************************************************************************************");
output.write("\n");
output.write("\n");
output.close();
FileWriter(String fileName, boolean append)
Constructs a FileWriter object given a file name with a boolean indicating whether or not to append the data written.
boolean append values: true, false
!((String)globalMap.get("tSystem_1_OUTPUT")).equals(null)
||
!(((String)globalMap.get("tSystem_1_ERROROUTPUT")) == null)
||
!(((String)globalMap.get("tSystem_1_ERROR_MESSAGE")) == null)
import java.io.*;
Writer output = null;
File file = new File(context.BatchLogFile);
output = new BufferedWriter(new FileWriter(file, true));
output.write("\n");
output.write("\n");
output.write("********************************************************************************************************");
output.write("\n");
output.write("\n");
output.write("Start Date/Time= " + TalendDate.getCurrentDate());
output.write("\n");
output.write("\n");
if ( !((String)globalMap.get("tSystem_1_OUTPUT")).equals(null) ) {
output.write("------------------------------------Standard Output-------------------------------------");
output.write("\n");
output.write(((String)globalMap.get("tSystem_1_OUTPUT")));
output.write("\n");
}
if ( !(((String)globalMap.get("tSystem_1_ERROROUTPUT")) == null) ) {
output.write("--------------------------------------Error Output--------------------------------------");
output.write("\n");
output.write(((String)globalMap.get("tSystem_1_ERROROUTPUT")));
output.write("\n");
}
if ( !(((String)globalMap.get("tSystem_1_ERROR_MESSAGE")) == null) ) {
output.write("--------------------------------------Error Message-------------------------------------");
output.write("\n");
output.write(((String)globalMap.get("tSystem_1_ERROR_MESSAGE")));
output.write("\n");
}
output.write("\n");
output.write("\n");
output.write("End Date/Time= " + TalendDate.getCurrentDate());
output.write("\n");
output.write("\n");
output.write("********************************************************************************************************");
output.write("\n");
output.write("\n");
output.close();
FileWriter(String fileName, boolean append)
Constructs a FileWriter object given a file name with a boolean indicating whether or not to append the data written.
boolean append values: true, false