use of org.talend.core.model.components.conversions.UpdateMappingFortAdvancedXMLConversion in project tdi-studio-se by Talend.
the class UpgradetAdvancedFileOutputXMLMigrationTask method execute.
public ExecutionResult execute(Item item) {
ProcessType processType = getProcessType(item);
if (getProject().getLanguage() != ECodeLanguage.JAVA || processType == null) {
return ExecutionResult.NOTHING_TO_DO;
}
try {
//$NON-NLS-1$
IComponentFilter filter1 = new NameComponentFilter("tAdvancedFileOutputXML");
//$NON-NLS-1$
IComponentConversion removeQuotes1 = new UpdateMappingFortAdvancedXMLConversion();
ModifyComponentsAction.searchAndModify(item, processType, filter1, Arrays.<IComponentConversion>asList(removeQuotes1));
return ExecutionResult.SUCCESS_NO_ALERT;
} catch (Exception e) {
ExceptionHandler.process(e);
return ExecutionResult.FAILURE;
}
}
Aggregations