- All Implemented Interfaces:
- ConfigurableComponent, ControllerService, LookupService<String>, StringLookupService
@Tags(value={"lookup","script","invoke","groovy","python","jython","jruby","ruby","javascript","js","lua","luaj"})
@CapabilityDescription(value="Allows the user to provide a scripted LookupService instance in order to enrich records from an incoming flow file. The script is expected to return an optional string value rather than an arbitrary object (record, e.g.). Also the scripted lookup service should implement StringLookupService, otherwise the getValueType() method must be implemented even though it will be ignored, as SimpleScriptedLookupService returns String as the value type on the script\'s behalf. Please note that due to a bug in Jython that remains unresolved, it is not possible to use Jython to write a script for this service in Python.")
@Restricted(restrictions=@Restriction(requiredPermission=EXECUTE_CODE,explanation="Provides operator the ability to execute arbitrary code assuming all permissions that NiFi has."))
public class SimpleScriptedLookupService
extends BaseScriptedLookupService
implements StringLookupService
A Controller service that allows the user to script the lookup operation to be performed (by LookupAttribute, e.g.)