- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Put array with Dates on nifi flowfile
- Labels:
-
Apache NiFi
Created 07-15-2021 09:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi! I have an array with dates and I want to insert it into my flowFile through a groovy script but I can't find a way to do it, could you help me?
that's my script with which I get dates.
and this is my groovy script but it always goes to the queue of failure.
Created 07-22-2021 08:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am not entirely sure what you are trying to achieve.
If the set of data lives somewhere in a file you should be able to read it (e.g. list and fetchfile).
If the data is generated by a script, is that just for testing?
You could look at executescript or ExecuteGroovyScript, or perhaps just generate fake data directly with GenerateFlowFile (though the exact variety that you mention would be tough with the latter)
- Dennis Jaheruddin
If this answer helped, please mark it as 'solved' and/or if it is valuable for future readers please apply 'kudos'.
Created 07-22-2021 08:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am not entirely sure what you are trying to achieve.
If the set of data lives somewhere in a file you should be able to read it (e.g. list and fetchfile).
If the data is generated by a script, is that just for testing?
You could look at executescript or ExecuteGroovyScript, or perhaps just generate fake data directly with GenerateFlowFile (though the exact variety that you mention would be tough with the latter)
- Dennis Jaheruddin
If this answer helped, please mark it as 'solved' and/or if it is valuable for future readers please apply 'kudos'.
