Member since
04-16-2023
15
Posts
0
Kudos Received
0
Solutions
05-29-2023
11:03 PM
Groovy Script Crashing: Unexpected Character '(' in groovy script in apache nifi?
... View more
Labels:
- Labels:
-
Apache NiFi
05-03-2023
07:35 AM
I have this data saved in an attribute lets say "Data" .I have to Match this "Your_Name" present in this Data with some Field(mentioned below) which will be called after API. [
{
"admin": "A1",
"Your_Name": "Lily",
"Reason1": "Shot"
}
] Now, This is the data which will get after API call in InvokeHttp processor, I have stored it in an "ResponseData" attribute using ExtractText. I have to match Data's "Your_Name" with ResponseData's "Name", if both of these matches we will send the respectives "nameId" in some outputstream variable or something so that it can go ahead as an output(the nameId only of the Name which matched with Your_Name). [ {
"Name" : "Ivor",
"Speciality" : [ {
"nameId" : "611",
"SId" : "2"
} ]
}, {
"Name" : "Philip",
"Speciality" : [ {
"nameId" : "980",
"SId" : "12"
} ]
}, {
"Name" : "Adams",
"Speciality" : [ {
"nameId" : "611",
"SId" : "2"
} ]
},
{
"Name" : "Lily",
"Speciality" : [ {
"nameId" : "618",
"SId" : "20"
} ]
}
] Two of the Name (here Ivor and Adams) can have the same nameID, So we have to match Name and send its nameId only. I want to write ECMA script for this.
... View more
Labels:
- Labels:
-
Apache NiFi
04-26-2023
07:09 AM
@dchaffey Hi After Array split I get 12 flowfiles, Now I want those flowfiles to use one by one, means when 1 flowfile will execute its complete process then only next flowfile should be sent ahead. I tried using wait and notify but didnt worked properly. Can you suggest something
... View more
04-25-2023
10:38 AM
Hi, Can you answer this question please How to do Dynamic property naming in NIfi? - Cloudera Community - 369374
... View more
04-25-2023
10:25 AM
I am assigning a value to "reasonId" and later using it as a dynamic property in other processor(ExractText). Now, I want to assign this as an dynamic property so that I can store some API response into this. Means reasonId value and Api response both should change evertytime. Here I want this [${reasonId}=(.*)] to be like this:- 6099 = Api response (Everytime value of 6099 should change as it is a dynamic variable) But, I am getting it like this ${reasonId}=Api response Why there is no 6099 instead of reasonId. Does it means Dynamic property assignment is not working properly? or I can use some jolt spec and all for this? Basically I want reasonId to hold its value 6099 and Api response should be store in 6099 instead of ${reasonId}.
... View more
Labels:
- Labels:
-
Apache NiFi
04-24-2023
02:32 AM
So wait-notify would be added in between EnforceOrder and extract text ? So that next flowfile will execute after one flowfile process completes?
... View more
04-24-2023
02:09 AM
That is correct but when I am setting relationship of EnforceOrder with ExtractText processor only 1 file is going to ExtractText under (overtook, wait ,skipped) relationship, Rest 11 files are going under success. While I want to loop on all of them one by one that is iteration. So After one complete iteration How can I get 2nd flowfile value in ExtractText processor. Also the relationship is also a doubt of concern . Actually I dont know whether it should be under success or overtook,wait and skipped . All I need is I want every flowfile to go to ExtractText Processor for further flow one by one.
... View more
04-24-2023
01:13 AM
Hi I did the same and it worked for the first value of array now the question is how to process on 2nd value of array? I mean how to to take 2nd index value in 2nd call of loop?
... View more
04-23-2023
03:37 AM
Actually this is my actual question in case you can help with this How can I extract this key value "9876" from the g... - Cloudera Community - 368878 (please see reply also, I was unable to edit the question So I added the Correct information in one comments reply).
... View more
04-23-2023
03:31 AM
Hi, I had done it and as you mentioned I will get 12 flowfiles, I got the same but the problem is I need only 1 value at a time as we do in a loop. So the question is how to use the flowfile value for running the loop OR "how to run loop on flowfiles" ? I have 12 flowfiles now for further process I need the 1st index values that is the first flowfile value and process further and in second time I need 2nd index value so that I can process further and 3rd need the index value and so on for all flow files. Now question rises how can I iterate on flowfiles?
... View more