how to retrieve the child job status for a Groovy DataImportRequest
When executing a groovy rule using createDataImportRequest() the rule that calls the import will succeed even if the import fails. what is the way to check if the import failed to send an admin notification?
This is the Groovy code we are using
//Groovy to import data from a CSV file using a specific date format, delimiter and other data load options
cube.createDataImportRequest()
.setDataLoadOption(ADD_TO_EXISTING_VALUE)
.setAsoDataValueOption(IGNORE_MISSING_VALUES)
.setErrorFileName("${FileName}.log")
//.importDataFromFile("FinStmt_Import_Test.csv", CELL_FORMAT_WITH_DIM_HEADERS, ',')
.importDataFromFile("${FileName}.csv", CELL_FORMAT, ',')