Created 10-06-2017 06:33 PM
I'm hoping someone can point me in the right direction. I have a SimpleKeyValueLookupService configured with some sample type I'm attempting to lookup. The way I understand it so far (from all the searches I've done) is in the LookUpAttribute I create a Dynamic Property of 'key' and set it's value to be in my case ${column_name}. So my question is where does the result get returned into?
Created on 10-07-2017 07:36 AM - edited 08-17-2019 09:21 PM
@Hans FeldmannThe best thing to explain this is to take an example. Let's say that you want to add an attribute city with a SimpleKVLookupService. And you will be doing the lookup by an attribute id_store (look at this article to understand the logic behind this use case).
You need to configure LookupAttribute as follows:
This means that the processor will use the value of the attribute id_store as a key and query the lookupservice. the returned value will be added as an attribute city. Here's the result:
Of course, the flow file should have the attribute id_store before going in LookupAttribute.
And here's the content of the SimpleKVLookupService
I hope this helps
Created on 10-07-2017 07:36 AM - edited 08-17-2019 09:21 PM
@Hans FeldmannThe best thing to explain this is to take an example. Let's say that you want to add an attribute city with a SimpleKVLookupService. And you will be doing the lookup by an attribute id_store (look at this article to understand the logic behind this use case).
You need to configure LookupAttribute as follows:
This means that the processor will use the value of the attribute id_store as a key and query the lookupservice. the returned value will be added as an attribute city. Here's the result:
Of course, the flow file should have the attribute id_store before going in LookupAttribute.
And here's the content of the SimpleKVLookupService
I hope this helps