use of org.apache.nifi.lookup.LookupService in project nifi by apache.
the class LookupAttribute method onTrigger.
@Override
public void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException {
final ComponentLog logger = getLogger();
final LookupService lookupService = context.getProperty(LOOKUP_SERVICE).asControllerService(LookupService.class);
final boolean includeEmptyValues = context.getProperty(INCLUDE_EMPTY_VALUES).asBoolean();
for (FlowFile flowFile : session.get(50)) {
try {
onTrigger(logger, lookupService, includeEmptyValues, flowFile, session);
} catch (final IOException e) {
throw new ProcessException(e.getMessage(), e);
}
}
}
Aggregations