You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Patrice Freydiere (JIRA)" <ji...@apache.org> on 2017/09/09 14:49:00 UTC

[jira] [Comment Edited] (NIFI-4367) InvokedScriptedProcessor

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

Patrice Freydiere edited comment on NIFI-4367 at 9/9/17 2:48 PM:
-----------------------------------------------------------------

using extends AbstractProcessor in a script lead to an exception, because the scripted class receive the invokescriptedprocessor properties, 

this patch fix this, and now permit to derive from helper base class opening the use to record based derivations, and making processing thought this.


was (Author: frett27):
using extends AbstractProcessor in a script lead to an exception, because the scripted class receive the invokescriptedprocessor properties, 

this patch fix this, and now permit to derive from helper base class opening the use to record based derivations, and making processing thought this.

> InvokedScriptedProcessor
> ------------------------
>
>                 Key: NIFI-4367
>                 URL: https://issues.apache.org/jira/browse/NIFI-4367
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.4.0
>         Environment: Linux / Windows
>            Reporter: Patrice Freydiere
>              Labels: InvokeScriptedProcessor, validation
>             Fix For: 1.4.0
>
>         Attachments: 0001-NIFI-4367-Fix-on-processor-for-permit-deriving-scrip.patch
>
>
> InvokeScriptedProcessor pass his ValidationContext to the inner script, validate call
> InvokeScriptedProcessor Line 465 :                final Collection<ValidationResult> instanceResults = instance.validate(context);
>  
> The problem is that the invokedscript pass the ScriptFile PropertyDescriptor that is validated, if the script derived from the AbstractConfigurableComponent, (because the AbstractConfigurableComponent validate all the context properties).
> The context should be refined to remove the InvokeScriptedProcessor Properties.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)