[ 
https://issues.apache.org/jira/browse/NIFI-15189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Stieglitz updated NIFI-15189:
------------------------------------
    Description: 
Currently the SCRIPT_FILE and SCRIPT_BODY property descriptors found in 
ScriptingComponentUtils and used in the list of property descriptors in 
ScriptedRecordProcessor use similar language in their descriptions
{code:java}
Only one of Script File or Script Body may be used{code}
It would seem to be simpler to have one property descriptor using 
identifiesExternalResource which would allow for specifying either a file or 
the body of a script.

This ticket address the need to consolidate the two current properties of 
SCRIPT_FILE and SCRIPT_BODY into one property that uses 
identifiesExternalResource to allow for specifying a file for the script or the 
actual text of the script.

  was:
Currently the SCRIPT_FILE and SCRIPT_BODY property descriptors found in 
ScriptingComponentUtils and used in the list of property descriptors in 
ScriptedRecordProcessor use similar language in their descriptions
{code:java}
Only one of Script File or Script Body may be used{code}
This would seem to lend itself for the need of a strategy to pick one or the 
other.

This ticket address the need to add a strategy which would thereby force 
picking either a script file or script body to specify and then allow for 
removing the need for the above sentence in the property descriptors 
descriptions.


> ScriptedRecordProcessor should use one property descriptor with 
> identifiesExternalResource to specify a file or the body of a script
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-15189
>                 URL: https://issues.apache.org/jira/browse/NIFI-15189
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Daniel Stieglitz
>            Assignee: Daniel Stieglitz
>            Priority: Minor
>
> Currently the SCRIPT_FILE and SCRIPT_BODY property descriptors found in 
> ScriptingComponentUtils and used in the list of property descriptors in 
> ScriptedRecordProcessor use similar language in their descriptions
> {code:java}
> Only one of Script File or Script Body may be used{code}
> It would seem to be simpler to have one property descriptor using 
> identifiesExternalResource which would allow for specifying either a file or 
> the body of a script.
> This ticket address the need to consolidate the two current properties of 
> SCRIPT_FILE and SCRIPT_BODY into one property that uses 
> identifiesExternalResource to allow for specifying a file for the script or 
> the actual text of the script.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to