[
https://issues.apache.org/jira/browse/NIFI-14480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17945380#comment-17945380
]
David Handermann commented on NIFI-14480:
-----------------------------------------
Thanks for the through response and example snippet for Drools integration
[~namanarora].
Regarding examples, I was more interested in examples of processing JSON
itself, although it is also helpful to consider how the Processor wrapper code
would be implemented.
In light of the general approach requiring parsing JSON to generic objects, I
think the best option for now is to pursue building a Processor outside of the
Apache NiFi project in a separate repository. NAR artifacts can be published to
Maven Central for ease of integration, and those details could be linked to
this issue. Following that approach would provide opportunity for other project
maintainers and community members to consider whether a generic integration
with Drools for parsing JSON Map objects would be suitable for inclusion and
ongoing maintenance.
As with other Processor proposals, this is not to say that such a component is
a bad idea, just that it does not seem to be a good fit for incorporation and
continued maintenance in Apache NiFi itself. Going the direction of a separate
repository would also provide some additional time for Drools incubation in
Apache KIE.
> 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)