Member since
06-12-2020
8
Posts
0
Kudos Received
0
Solutions
06-02-2021
06:17 AM
@Maqbool Can you provide some more detail on what you are trying to accomplish here? If we look at the NiFi Expression Language (NEL) example that does work you shared: ${category_mappings:jsonPath("$.catCode")} NEL evaluates this as follows: Finds NiFi variable with name "category_mappings" and return the value assigned to that variable (Depending on level of NEL support in the component property were this is used, it may search for that variable name in multiple places (FlowFile attributes, variable registry, java properties, environment variables). The returned value is then passed to the NEL function :jsonPath(). Now if we look at your parameter context example: #{category_mappings:jsonPath("$.catCode")} It is looking for the parameter context with string "category_mappings:jsonPath("$.catCode")" which it did not find in the "Parameters" assigned to the Process Group in which this processor resides. I suspect this is not what you really are trying to accomplish here. I suspect that the parameter context you have in your parameters on this process group is really only "category_mappings" and you still need to use NEL in order to execute a NEL function against that parameter's value. ${#{category_mappings}:jsonPath("$.catCode")} You'll notice the slight difference here. We now have a NEL statement that gets its subject from a parameter "category_mappings" instead of variable and passes that value to the NEL ":jsonPath()" function. If you found this addresses your query, please take a moment to login and click "Accept" on this solution. Thank you, Matt
... View more
06-02-2021
12:47 AM
I have instead created a custom processor to convert the velocity template & generate a nice tabular content.
... View more
04-07-2021
10:37 PM
@Maqbool as this is an older post, you would have a better chance of receiving a resolution by starting a new thread. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post.
... View more
09-14-2020
12:49 AM
I have put detailed solution description here You should be able to start NiFi & its registry with this docker compose file. It persists several folders on the local disk & rest will be persisted in the docker volume called 'nifi_data' so that it retains the previous state of other folders like content_repository, database_repository, flowfile_repository, provenance_repository, state and work.
... View more