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

Mark Payne commented on NIFI-435:
---------------------------------

hmm it's an interesting idea. Not sure how something like that would play out 
though in the API. For example, if we get a FlowFile that has attribute "count" 
and that's expected to be a number but has value "hello"... what do we do? 
Throw an Exception when you try to get the value of the attribute? or perhaps 
provide a "session.isAttributeValid(FlowFile flowFile, String attributeName)"? 
I'm not sure how this would work...

> Consider Framework support of ReadsAttributes and WritesAttributes
> ------------------------------------------------------------------
>
>                 Key: NIFI-435
>                 URL: https://issues.apache.org/jira/browse/NIFI-435
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core Framework
>    Affects Versions: 0.1.0
>            Reporter: Dan Bress
>            Priority: Minor
>
> From Joe:
> I think we should also consider the following:
> - These annotations aren't just for documentation purposes. We could in 
> theory evolve to support runtime type checking like validation on flow file 
> attributes based on the 'ReadsAttributes' annotation.



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

Reply via email to