[ 
https://issues.apache.org/jira/browse/NIFI-2020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15368792#comment-15368792
 ] 

ASF GitHub Bot commented on NIFI-2020:
--------------------------------------

Github user mattyb149 commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/564#discussion_r70157576
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/JoltTransformJSON.java
 ---
    @@ -147,10 +174,39 @@
                             .explanation(message)
                             .build());
                 }
    +
             } else {
    +
    +            ClassLoader customClassLoader = null;
                 try {
    +
    +                if(modulePath != null) {
    +                    customClassLoader = 
ClassLoaderUtils.getCustomClassLoader(modulePath, 
this.getClass().getClassLoader(), getJarFilenameFilter());
    +                }
    +
                     Object specJson = SORTR.getValue().equals(transform) ? 
null : JsonUtils.jsonToObject(specValue, DEFAULT_CHARSET);
    -                TransformFactory.getTransform(transform, specJson);
    +
    +                if(CUSTOMR.getValue().equals(transform)){
    +
    +                    if(!StringUtils.isEmpty(customTransform) && 
customClassLoader == null){
    +                        final String customMessage = "One or more module 
directories containing the provided custom transformation must be specified.";
    --- End diff --
    
    See above about the message for whether a module directory MUST be provided 
or not


> Enhance JoltTransformJSON processor to support custom transforms
> ----------------------------------------------------------------
>
>                 Key: NIFI-2020
>                 URL: https://issues.apache.org/jira/browse/NIFI-2020
>             Project: Apache NiFi
>          Issue Type: New Feature
>          Components: Core Framework
>    Affects Versions: 1.0.0
>            Reporter: Yolanda M. Davis
>            Assignee: Yolanda M. Davis
>             Fix For: 1.0.0
>
>
> Jolt supports additional custom transforms via fully-qualified Java 
> classnames. Would like to provide the ability to support custom 
> transformation (via drop in jars) for the Jolt Transform processor.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to