never mind.. i got that working .. i just wanted to understand the flow in
the invokescripted processor
first i am reading the input stream to JSON slurper
identify whether the element name is ORDER or REFUND
based on the element name transfer the flow file to appropriate
relationship.. i am sketc
I have some examples on my blog:
http://funnifi.blogspot.com
Regards,
Matt
> On Jul 7, 2016, at 5:03 PM, Anuj Handa wrote:
>
> is there some examples of the InvokeSscriptedProcessor.
> i am quite new to nifi any examples i can replicate would help greatly..
>
>> On Thu, Jul 7, 2016 at 11:45
is there some examples of the InvokeSscriptedProcessor.
i am quite new to nifi any examples i can replicate would help greatly..
On Thu, Jul 7, 2016 at 11:45 AM, Matt Burgess wrote:
> It will be fixed in 0.7.0 [1]. Also you could use
> InvokeScriptedProcessor to replace both the ExecuteScript a
It will be fixed in 0.7.0 [1]. Also you could use
InvokeScriptedProcessor to replace both the ExecuteScript and
RouteOnAttribute, since the scripted processor can define the
relationships and provide the logic to extract the arbitrary JSON
keys.
Regards,
Matt
[1] https://issues.apache.org/jira/b
I think you actually need to use both ExecuteScript and RouteOnAttribute
together.
The reason is that ExecuteScript only has success and failure
relationships, so all you can do there is extract the value you are
interested in (order or refund) and put it in an attribute and route to
success,
then
Hi Bryan,
Thats correct i want to route on element name so "ORDER" through one and
"REFUND" to another. The reason is based on element name the structure of
the JSON could be different so the subsequent processing depends on the
element name.
Processing thousands of messages per minute which wou
Anuj,
Just to clarify, you want to route on the name of the element under
POSTransaction? Meaning, route "Order" to one place and "Refund" to another?
I'm not a JSON Path expert, but I can't come up with a way to get just an
element name from JSON path, it is usually used to get the value of a k
Hi Folks,
I have following two JSON documents and i would like to route them based on
what the value is. In the below examples its order and refund. i want this
to be dynamic as i can expect range of values.
i was thinking of using EvaluateJsonPath and reading the Value of this
field in the attri