Re: ScriptedLookupService

2021-02-25 Thread Matt Burgess
if you have any issues getting going. Regards, Matt On Thu, Feb 25, 2021 at 3:56 PM Greene (US), Geoffrey N wrote: > > Writing my first ScriptedLookupService in groovy, and I think I have a pretty > simple question: > > I’d like to be able to return multiple values in one look

ScriptedLookupService

2021-02-25 Thread Greene (US), Geoffrey N
Writing my first ScriptedLookupService in groovy, and I think I have a pretty simple question: I'd like to be able to return multiple values in one lookup, but I can't figure out what my return type needs to be. String isn't right, obviously, and returning a Map isn't right. Is lookup only able

Re: ScriptedLookupService with Python

2019-02-01 Thread Mike Thomsen
am not familiar with Groovy, > I will try the Groovy script :). I think it is the best solution. > Really thanks for your support :) > > PS: Probably, waiting for the fix of the bug [1], it would be better to > update the documentation related to the ScriptedLookupService and highlight >

Re: ScriptedLookupService with Python

2019-01-31 Thread happy smith
to the ScriptedLookupService and highlight that for the moment the service cannot be used with python. On Wed, 30 Jan 2019 at 20:18, Matt Burgess wrote: > Short answer: Unfortunately this is not currently possible for Jython > in NiFi 1.7.0+ because of a Jython bug [1] that never made it into a >

Re: ScriptedLookupService with Python

2019-01-30 Thread Matt Burgess
M happy smith wrote: > > Dear users, > > I would like to use ScriptedLookupService with Python, but I am not > succeeding in get any scripts working . > > On the basis of an example that I found for groovy, I am trying something > like this: > > import org.apache

ScriptedLookupService with Python

2019-01-30 Thread happy smith
Dear users, I would like to use ScriptedLookupService with Python, but I am not succeeding in get any scripts working . On the basis of an example that I found for groovy, I am trying something like this: import org.apache.nifi.lookup.LookupService as LookupService from

Re: How to get DBCP service inside ScriptedLookupService

2017-11-15 Thread Eric Chaves
working because declaring it was not enough to > make it shown at Properties dialog. I had to enable and than disable the > ScriptedProcessor it at least once to have it shown (guessing the code was > not executed). > > Thanks again for all the support. > > > 2017-11-14 15:52 GMT-02:00 Mat

Re: How to get DBCP service inside ScriptedLookupService

2017-11-15 Thread Eric Chaves
the support. 2017-11-14 15:52 GMT-02:00 Matt Burgess <mattyb...@apache.org>: > Mark, > > Good point, I forgot the ScriptedLookupService is itself a > ConfigurableComponent and can add its own properties. The original > script from my blog comes from ExecuteScript, where you ca

Re: How to get DBCP service inside ScriptedLookupService

2017-11-14 Thread Matt Burgess
seeing 8) None of these objects can get at the process group ID. This is because they are not associated with a ConfigurableComponent 9) ScriptedLookupService, after calling the script's initialize() method, will then call the script's onEnabled(ConfigurationContext) method if it exists

How to get DBCP service inside ScriptedLookupService

2017-11-14 Thread Eric Chaves
Hi Folks, I need to get an instance of DBCPService inside my ScriptedLookupService and for that I'm following Matt's post http://funnifi.blogspot.com.br/2016/04/sql-in-nifi-with-executescript.html In my groovy class I've overrided the initialize method and performing the lookup there but I'm