Member since
02-17-2022
10
Posts
1
Kudos Received
2
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1385 | 10-04-2022 12:13 AM | |
1926 | 09-28-2022 04:07 AM |
10-06-2022
07:33 AM
Hi @Fredi! The processor truly similar to UpdateAttribute but for flowfile content is ReplaceText. Capture the initial group and enrich it with attributes, for example with Replacement Value as following: $1, \"url_value\": \"${url_value}\" adjust it according to your JSON structure.
... View more
10-04-2022
12:13 AM
ResultInvoke in this case doesn't have any value, it's sent as a header with '${invokehttp.status.code}' as a value in http request. To assign status code to ResultInvoke use UpdateAttribute after the InvokeHTTP.
... View more
10-03-2022
11:59 PM
There should be two controllers configured: DistributedMapCacheClientService DistributedMapCacheServer Client is, eh, client, server is a backend for your cache. Without server client has nowhere to send a flowfile.
... View more
09-30-2022
11:49 AM
no, just another controller as shown at >Use default configs for these two controllers, at first it should be enough it'll work as a server by itself
... View more
09-30-2022
09:23 AM
yep, use default port and localhost as a hostname, also don't forget to start a cache server on the same port
... View more
09-30-2022
03:54 AM
Ok, I made two sample flows: the simple one just to put pdf almost straight to email: And here is the one with caches, if you have a complex process to build email body: Use default configs for these two controllers, at first it should be enough Increase entry size accordingly to your max pdf size, for Identifier use either filename or whatever you think does the job: Use same Identifier to fetch object
... View more
09-29-2022
07:12 AM
You store it into the cache with PutDistributedMapCache processor, you need the property to fetch the file back. DistributedMapCacheClientService controller and DistributedMapCacheServer controller are used with beforementioned processor. When you need the pdf you use FetchDistributedMapCache and get the flowfile back into the flow.
... View more
09-29-2022
12:12 AM
1 - it accepts no incoming connections, so I'd rather rebuild process around it or used distributed cache services. Try something like this: get file from smb put file to distributed cache while keeping it's identifier in an attribute generate email body with replacetext or w/e you use and put it into attribute fetch file from distributed cache use putemail with Attach File - true and Flow file content as message - false, set Message as an attribute with a body. 2 - process deletes files when Keep Source File property set to "false" (default configuration), to move file combine GetSmbFile (Keep Source File to false) with PutSmbFile. 3 - yep, as mentioned in 1, it's input/flowfile-generative processor, it should stay first in the stream.
... View more
09-28-2022
06:34 AM
1 Kudo
Hi @leandrolinof FetchFile gets the file from the host system, in your case try GetSmbFile or mount remote share into Linux first and then use FetchFile.
... View more
09-28-2022
04:07 AM
Hi @rafy, I tried the same regex with the same sample in 1.13.2 and 1.16.3 and both resulted in image url string. There can be a case with nifi JSON beautificator, the initial JSON lacks spaces and line breaks. Expression that works with https://ll.thespacedevs.com/2.0.0/launch/ is: (?<=\"image\":\")[A-Z-a-z-0-9\-\:\/\.\_]+ and as @SAMSAL said, EvaluateJsonPath is the right tool for this job.
... View more