[
https://issues.apache.org/jira/browse/NIFI-14480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17945138#comment-17945138
]
David Handermann commented on NIFI-14480:
-----------------------------------------
Thanks for the reply [~namanarora].
Are there any public examples available of using Drools for parsing JSON? It
would be helpful to have some examples for a basic comparison. Jolt is
extensible, and JSLT supports conditional logic, looping, and custom functions,
although both of these approaches are different than the rule-based design of
Drools.
>From an integration point of view, can Drools support reading from an
>InputStream, or does it require parsing using a JSON library, such as Jackson?
>This has memory usage implications, which impact Jolt usage currently.
Adding a new bundle and NAR package for a Drools JSON Processor would be a
potential option for consideration. Have you considered what to name the
Processor? DroolsTransformJSON would be one option following the pattern of
Jolt and JSLT.
> Add DroolsProcessor for rule-based JSON processing with dynamic/static DRL
> support
> ----------------------------------------------------------------------------------
>
> Key: NIFI-14480
> URL: https://issues.apache.org/jira/browse/NIFI-14480
> Project: Apache NiFi
> Issue Type: New Feature
> Components: Extensions
> Reporter: Naman Arora
> Priority: Major
>
> This processor provides integration of the Drools Rule Engine with Apache
> NiFi. It allows for flexible rule-based processing of JSON payloads in two
> modes:
> 1. **Static DRL Mode**:
> - User provides an absolute path to a DRL file.
> - That rule is used for all incoming flowfiles.
> 2. **Dynamic DRL Mode**:
> - User specifies a base path and a key name.
> - Processor extracts the relative DRL path from the key inside the
> flowfile JSON payload.
> - Dynamically fetches the rule and executes it.
> Additional Features:
> - **File Watcher** service that watches static and dynamic paths for DRL file
> changes and reloads the KIE Container automatically.
> - **Retry Mechanism** for rule execution with configurable retry attempts.
> This processor supports advanced decisioning and rule separation, and helps
> enable dynamic business rule application inside NiFi dataflows.
> I would like to contribute this processor under the Apache License. I have
> signed and submitted the ICLA.
> Let me know the next steps or if any feedback is required. Thanks!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)