Hi,
I try to use javascript in processor to do some enrichment and transformation,
but i don't know how to concat the service identifier.
As it is ExecutorScript processor, I can't add a service reference in
properties, I can only add service in current Group (I put logic in one Process
Group), I have name and id of service, I enable the service.
See the following code:
var enrichmentService =
context.getControllerServiceLookup().getControllerService("DBCPConnectionPool");
if(enrichmentService == null) {
log.warn("Can't find DBCPConnectionPool");
session.transfer(flowFile, REL_FAILURE);
}
It always jump to null condition.
Anyone can help?
Kui