*/
int successes = 0;
for (ExtractorImportRequest importRequest : elir.extractors) {
try {
Node node = nodeService.loadNode(nodeId);
Extractor.Type type = Extractor.Type.valueOf(importRequest.extractorType.toUpperCase());
Extractor extractor = extractorFactory.forCreate(
Extractor.CursorStrategy.valueOf(importRequest.cursorStrategy.toUpperCase()),
importRequest.title,
importRequest.sourceField,
importRequest.targetField,
type,
currentUser(),
Extractor.ConditionType.valueOf(importRequest.conditionType.toUpperCase()),
importRequest.conditionValue
);
extractor.loadConfigFromImport(type, importRequest.extractorConfig);
extractor.loadConvertersFromImport(importRequest.converters);
extractor.setOrder(importRequest.order);
extractor.create(node, node.getInput(inputId));
} catch (Exception e) {
Logger.error("Could not import extractor. Continuing.", e);
continue;
}