tag:blogger.com,1999:blog-42869383794183737.post2328106971408161476..comments2024-03-09T01:04:10.400-08:00Comments on Fun with Apache NiFi: ExecuteScript Explained - Split fields and NiFi API with GroovyMattyBhttp://www.blogger.com/profile/05049049725324531534noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-42869383794183737.post-44692813140766407842019-03-29T23:17:25.567-07:002019-03-29T23:17:25.567-07:00not able to read/refer attribute inside streamcall...not able to read/refer attribute inside streamcallbac .. i wanted to compare against content in json.. its groovy script i am talking abt.. any suggestions?Anonymoushttps://www.blogger.com/profile/03804024410668756883noreply@blogger.comtag:blogger.com,1999:blog-42869383794183737.post-13246063564806597782018-08-26T00:59:47.920-07:002018-08-26T00:59:47.920-07:00Thanks for the script, its very good, however I no...Thanks for the script, its very good, however I noticed it doesnt work with UTF8 characters in the data file, once we write the flowfile it doesnt encode correctly using arabic texts, etc. any ideas?Anonymoushttps://www.blogger.com/profile/08592282081830575256noreply@blogger.comtag:blogger.com,1999:blog-42869383794183737.post-35366841613082708302017-10-06T06:43:02.959-07:002017-10-06T06:43:02.959-07:00That template is pretty old, and there were many c...That template is pretty old, and there were many changes between when it was written and 1.2.0, so it's probably too old to be loaded into 1.2.0, sorry! You really only need the script section though, you can rebuild that flow from scratch using the same processors, and just paste the script into the ExecuteScript body.MattyBhttps://www.blogger.com/profile/05049049725324531534noreply@blogger.comtag:blogger.com,1999:blog-42869383794183737.post-75288057289649069812017-10-06T02:10:54.075-07:002017-10-06T02:10:54.075-07:00Hi Matt,
I tried template to import in nifi 1.2.0 ...Hi Matt,<br />I tried template to import in nifi 1.2.0 but i got error that "Specified template is not in valid format", please could you help me where i am wrong.<br /><br />vanihttps://www.blogger.com/profile/01644100978568737654noreply@blogger.comtag:blogger.com,1999:blog-42869383794183737.post-49067304601228978002017-01-03T00:12:15.769-08:002017-01-03T00:12:15.769-08:00Hi, not an expert, but after the line a = line.tok...Hi, not an expert, but after the line a = line.tokenize('|')<br />I presume you can create an IF statement and check the value and add 00 or other if the value complies.<br />Guru java developers might know a faster way inside the outputstream.write statement. I think it is elegant to give it a separate line and explanation in your code for maintainability.Anonymoushttps://www.blogger.com/profile/00232999914329100858noreply@blogger.comtag:blogger.com,1999:blog-42869383794183737.post-57343279955103893522016-11-26T14:49:43.464-08:002016-11-26T14:49:43.464-08:00Hi Matt,
how can I add condition, e.x. print add ...Hi Matt, <br />how can I add condition, e.x. print add 00 to $1 if it starts with 0 ?Anonymoushttps://www.blogger.com/profile/03203229531807309889noreply@blogger.com